Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Db_Adapter_Abstract $db, $schema) | |
Creates a new database meta data object using the given pdo connection and schema name. | |
getTableNames () | |
List Tables. | |
getTableColumns ($tableName) | |
Returns an array containing the names of all the columns in the $tableName table,. | |
getTablePrimaryKeys ($tableName) | |
Returns an array containing the names of all the primary key columns in the $tableName table. | |
getSchema () | |
Returns the name of the default schema. | |
quoteSchemaObject ($object) | |
Returns a quoted schema object. | |
allowsCascading () | |
Returns true if the rdbms allows cascading. | |
disablePrimaryKeys ($tableName) | |
Disables primary keys if rdbms does not allow setting them otherwise. | |
enablePrimaryKeys ($tableName) | |
Reenables primary keys after they have been disabled. | |
Protected Member Functions | |
getTableDescription ($tableName) | |
Get Table information. | |
Protected Attributes | |
$_connection | |
$_schema | |
$_tableMetadata = array() | |
|
final |
Creates a new database meta data object using the given pdo connection and schema name.
PDO | $pdo | |
string | $schema |
allowsCascading | ( | ) |
Returns true if the rdbms allows cascading.
disablePrimaryKeys | ( | $tableName | ) |
Disables primary keys if rdbms does not allow setting them otherwise.
string | $tableName |
enablePrimaryKeys | ( | $tableName | ) |
Reenables primary keys after they have been disabled.
string | $tableName |
getSchema | ( | ) |
Returns the name of the default schema.
getTableColumns | ( | $tableName | ) |
Returns an array containing the names of all the columns in the $tableName table,.
string | $tableName |
|
protected |
Get Table information.
string | $tableName |
getTableNames | ( | ) |
List Tables.
getTablePrimaryKeys | ( | $tableName | ) |
Returns an array containing the names of all the primary key columns in the $tableName table.
string | $tableName |
quoteSchemaObject | ( | $object | ) |
Returns a quoted schema object.
(table name, column name, etc)
string | $object |
|
protected |
|
protected |
|
protected |