Class Schema

Description

Schema contains one or more databases, which each may have info about one or more tables, which each may have info about one or more columns, which each have info about whether it is a primary key, null is allowed, its type, etc.

  • author: Anthony Bush

Located in /schema/Schema.class.php (line 11)


	
			
Direct descendents
Class Description
MysqlServer Implements the interface for Server Driver, which:
Variable Summary
string $databases
Method Summary
Variables
string $databases = array() (line 19)

Stores the databases (SchemaDatabase) that have been loaded into memory so far.

  • access: protected
Methods
addDatabase (line 51)

Add a database to the pile.

  • author: Anthony Bush
  • access: public
void addDatabase ( $database)
  • $database
getDatabase (line 37)

Get the specified database name, or null if it hasn't been set yet.

  • author: Anthony Bush
  • access: public
mixed getDatabase ( $dbName)
  • $dbName
getDatabases (line 27)

Returns the databases that were loaded from the server's DSN.

  • access: public
array getDatabases ()
getNumberOfHasManyRelationships (line 178)
  • access: public
void getNumberOfHasManyRelationships ()
getNumberOfHasOneRelationships (line 168)
  • access: public
void getNumberOfHasOneRelationships ()
linkRelationships (line 66)

Traverses all tables and uses any Foreign Key information to generate

the relationships (one-to-one, one-to-many, and many-to-many) so that external entities (like the CoughGenerator) will only have to worry about what they want to *do* with the data rather than how to determine relationships.

  • author: Anthony Bush
  • access: public
void linkRelationships ()
outputRelationshipCounts (line 157)
  • access: public
void outputRelationshipCounts ()

Documentation generated on Wed, 12 Nov 2008 21:56:20 -0600 by phpDocumentor 1.4.0