Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Test_PHPUnit_Db_Metadata_Generic Class Reference

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()
 

Constructor & Destructor Documentation

__construct ( Zend_Db_Adapter_Abstract  $db,
  $schema 
)
final

Creates a new database meta data object using the given pdo connection and schema name.

Parameters
PDO$pdo
string$schema

Member Function Documentation

allowsCascading ( )

Returns true if the rdbms allows cascading.

Returns
bool
disablePrimaryKeys (   $tableName)

Disables primary keys if rdbms does not allow setting them otherwise.

Parameters
string$tableName
enablePrimaryKeys (   $tableName)

Reenables primary keys after they have been disabled.

Parameters
string$tableName
getSchema ( )

Returns the name of the default schema.

Returns
string
getTableColumns (   $tableName)

Returns an array containing the names of all the columns in the $tableName table,.

Parameters
string$tableName
Returns
array
getTableDescription (   $tableName)
protected

Get Table information.

Parameters
string$tableName
Returns
array
getTableNames ( )

List Tables.

Returns
array
getTablePrimaryKeys (   $tableName)

Returns an array containing the names of all the primary key columns in the $tableName table.

Parameters
string$tableName
Returns
array
quoteSchemaObject (   $object)

Returns a quoted schema object.

(table name, column name, etc)

Parameters
string$object
Returns
string

Member Data Documentation

$_connection
protected
$_schema
protected
$_tableMetadata = array()
protected