Class MysqlTable

Description

Implements interfaces:

Implements the interface for Table Driver, which:

Take a tableName and database link and provide access to the tables properties, such as its columns.

  • author: Anthony Bush

Located in /schema_generator/database/drivers/mysql/MysqlTable.class.php (line 12)

SchemaTable
   |
   --MysqlTable
Variable Summary
mixed $dbLink
Method Summary
MysqlTable __construct ( $tableName, [ $dbLink = null], [ $database = null])
void generateError ( $msg)
void loadColumns ()
void parseCreateStatement ( $createSql)
void parseForeignKeyReferences ( $createSql)
void query ( $sql)
string trimBackticks ( $str)
Variables
Methods
Constructor __construct (line 16)
  • access: public
MysqlTable __construct ( $tableName, [ $dbLink = null], [ $database = null])
  • $tableName
  • $dbLink
  • $database
generateError (line 116)
  • access: protected
void generateError ( $msg)
  • $msg
loadColumns (line 22)
  • access: public
void loadColumns ()

Implementation of:
DriverTable::loadColumns()
parseCreateStatement (line 53)
  • access: protected
void parseCreateStatement ( $createSql)
  • $createSql
parseForeignKeyReferences (line 57)
  • access: public
void parseForeignKeyReferences ( $createSql)
  • $createSql
query (line 103)
  • access: protected
void query ( $sql)
  • $sql
trimBackticks (line 99)

Trim whitespace, and THEN backticks (leaving any whitespice within the backticks)

  • access: protected
string trimBackticks ( $str)
  • $str

Inherited Methods

Inherited From SchemaTable

SchemaTable::addColumn()
SchemaTable::addForeignKey()
SchemaTable::addHabtmRelationshis()
SchemaTable::addHasManyRelationship()
SchemaTable::addHasOneRelationship()
SchemaTable::getColumn()
SchemaTable::getColumns()
SchemaTable::getDatabase()
SchemaTable::getForeignKey()
SchemaTable::getForeignKeys()
SchemaTable::getHabtmRelationships()
SchemaTable::getHasManyRelationships()
SchemaTable::getHasOneRelationships()
SchemaTable::getPrimaryKey()
SchemaTable::getSchema()
SchemaTable::getTableName()
SchemaTable::hasForeignKey()
SchemaTable::hasPrimaryKey()
SchemaTable::setDatabase()
SchemaTable::setTableName()

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