API Documentation

Test/PHPUnit/Db/Metadata/Generic.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Test
subpackage
PHPUnit
version
$Id: Generic.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Test_PHPUnit_Db_Metadata_Generic

Description

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.

Zend_Test_PHPUnit_Db_Metadata_Generic

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Test
subpackage
PHPUnit
uses
PHPUnit_Extensions_Database_DB_IMetaData
Properties
$_connection
$_schema
$_tableMetadata
Methods
__construct
getTableNames
getTableDescription
getTableColumns
getTablePrimaryKeys
getSchema
quoteSchemaObject
allowsCascading

Description

Generic Metadata accessor for the Zend_Db adapters

Properties

$_connection

Zend_Db_Adapter_Abstract $_connection = ''

Zend_Db Connection

Details

$_connection
Zend_Db_Adapter_Abstract
visibility
protected
default
final
false
static
false

$_schema

string $_schema = ''

Schemaname

Details

$_schema
string
visibility
protected
default
final
false
static
false

$_tableMetadata

array $_tableMetadata = 'array'

Cached Table metadata

Details

$_tableMetadata
array
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct(  $db, string $schema ) :

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

Arguments
$db
$schema
string
Details
visibility
public
final
true
static
false

allowsCascading

allowsCascading( ) : bool

Returns true if the rdbms allows cascading

Output
bool
Details
visibility
public
final
false
static
false

getSchema

getSchema( ) : string

Returns the name of the default schema.

Output
string
Details
visibility
public
final
false
static
false

getTableColumns

getTableColumns( string $tableName ) : array

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

Arguments
$tableName
string
Output
array
Details
visibility
public
final
false
static
false

getTableDescription

getTableDescription( string $tableName ) : array

Get Table information

Arguments
$tableName
string
Output
array
Details
visibility
protected
final
false
static
false

getTableNames

getTableNames( ) : array

List Tables

Output
array
Details
visibility
public
final
false
static
false

getTablePrimaryKeys

getTablePrimaryKeys( string $tableName ) : array

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

Arguments
$tableName
string
Output
array
Details
visibility
public
final
false
static
false

quoteSchemaObject

quoteSchemaObject( string $object ) : string

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

Arguments
$object
string
Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.