Class Zend_Test_PHPUnit_Db_Metadata_Generic

Description

Generic Metadata accessor for the Zend_Db adapters

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License
  • uses: PHPUnit_Extensions_Database_DB_IMetaData

Located in /Test/PHPUnit/Db/Metadata/Generic.php (line 43)


	
			
Variable Summary
Method Summary
 Zend_Test_PHPUnit_Db_Metadata_Generic __construct ( $db, string $schema, PDO $pdo)
 bool allowsCascading ()
 string getSchema ()
 array getTableColumns (string $tableName)
 array getTableDescription (string $tableName)
 array getTableNames ()
 array getTablePrimaryKeys (string $tableName)
 string quoteSchemaObject (string $object)
Variables
Zend_Db_Adapter_Abstract $_connection (line 50)

Zend_Db Connection

  • access: protected
string $_schema (line 57)

Schemaname

  • access: protected
array $_tableMetadata = array() (line 64)

Cached Table metadata

  • access: protected
Methods
Constructor __construct (line 73)

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

  • access: public
Zend_Test_PHPUnit_Db_Metadata_Generic __construct ( $db, string $schema, PDO $pdo)
allowsCascading (line 163)

Returns true if the rdbms allows cascading

  • access: public
bool allowsCascading ()
getSchema (line 142)

Returns the name of the default schema.

  • access: public
string getSchema ()
getTableColumns (line 110)

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

  • access: public
array getTableColumns (string $tableName)
  • string $tableName
getTableDescription (line 95)

Get Table information

  • access: protected
array getTableDescription (string $tableName)
  • string $tableName
getTableNames (line 84)

List Tables

  • access: public
array getTableNames ()
getTablePrimaryKeys (line 124)

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

  • access: public
array getTablePrimaryKeys (string $tableName)
  • string $tableName
quoteSchemaObject (line 153)

Returns a quoted schema object. (table name, column name, etc)

  • access: public
string quoteSchemaObject (string $object)
  • string $object

Documentation generated on Mon, 21 Jun 2010 15:25:27 -0400 by phpDocumentor 1.4.3