API Documentation

Zend/Test/PHPUnit/Db/Metadata/Generic.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Test  
Subpackage
PHPUnit  
Version
$Id: Generic.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Test_PHPUnit_Db_Metadata_Generic

Package: Zend\Test\PHPUnit

Generic Metadata accessor for the Zend_Db adapters

Implements
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\PHPUnit_Extensions_Database_DB_IMetaData  

Properties

Propertyprotected\Zend_Db_Adapter_Abstract  $_connection= ''

Zend_Db Connection

Propertyprotectedstring  $_schema= ''

Schemaname

Details
Type
string
Propertyprotectedarray  $_tableMetadata= 'array()'

Cached Table metadata

Default valuearray()Details
Type
array

Methods

methodpublic__construct(  $db, string $schema ) : void
final

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

Parameters
Name Type Description
$db
$schema string
methodpublicallowsCascading( ) : bool

Returns true if the rdbms allows cascading

Returns
Type Description
bool
methodpublicgetSchema( ) : string

Returns the name of the default schema.

Returns
Type Description
string
methodpublicgetTableColumns( string $tableName ) : array

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

Parameters
Name Type Description
$tableName string
Returns
Type Description
array
methodprotectedgetTableDescription( string $tableName ) : array

Get Table information

Parameters
Name Type Description
$tableName string
Returns
Type Description
array
methodpublicgetTableNames( ) : array

List Tables

Returns
Type Description
array
methodpublicgetTablePrimaryKeys( string $tableName ) : array

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

Parameters
Name Type Description
$tableName string
Returns
Type Description
array
methodpublicquoteSchemaObject( string $object ) : string

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

Parameters
Name Type Description
$object string
Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.