PHP 클래스 PHPUnit_Extensions_Database_DB_MetaData, qcodo

저자: Mike Lively ([email protected])
상속: implements PHPUnit_Extensions_Database_DB_IMetaData
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$metaDataClassMap
$pdo PDO The PDO connection used to retreive database meta data
$schema string The default schema name for the meta data object.
$schemaObjectQuoteChar The character used to quote schema objects.
$truncateCommand The command used to perform a TRUNCATE operation.

공개 메소드들

메소드 설명
__construct ( PDO $pdo, string $schema = '' ) Creates a new database meta data object using the given pdo connection and schema name.
allowsCascading ( ) : boolean Returns true if the rdbms allows cascading
createMetaData ( PDO $pdo, string $schema = '' ) : PHPUnit_Extensions_Database_DB_MetaData Creates a meta data object based on the driver of given $pdo object and $schema name.
getSchema ( ) : string Returns the schema for the connection.
getTruncateCommand ( ) : string Returns the command for the database to truncate a table.
quoteSchemaObject ( string $object ) : string Returns a quoted schema object. (table name, column name, etc)
registerClassWithDriver ( string $className, string $pdoDriver ) : ReflectionClass Validates and registers the given $className with the given $pdoDriver.
splitTableName ( string $fullTableName ) : array Seperates the schema and the table from a fully qualified table name.

메소드 상세

__construct() 최종 공개 메소드

Creates a new database meta data object using the given pdo connection and schema name.
final public __construct ( PDO $pdo, string $schema = '' )
$pdo PDO
$schema string

allowsCascading() 공개 메소드

Returns true if the rdbms allows cascading
public allowsCascading ( ) : boolean
리턴 boolean

createMetaData() 공개 정적인 메소드

Creates a meta data object based on the driver of given $pdo object and $schema name.
public static createMetaData ( PDO $pdo, string $schema = '' ) : PHPUnit_Extensions_Database_DB_MetaData
$pdo PDO
$schema string
리턴 PHPUnit_Extensions_Database_DB_MetaData

getSchema() 공개 메소드

Returns the schema for the connection.
public getSchema ( ) : string
리턴 string

getTruncateCommand() 공개 메소드

Returns the command for the database to truncate a table.
public getTruncateCommand ( ) : string
리턴 string

quoteSchemaObject() 공개 메소드

Returns a quoted schema object. (table name, column name, etc)
public quoteSchemaObject ( string $object ) : string
$object string
리턴 string

registerClassWithDriver() 공개 정적인 메소드

It should be noted that this function will not attempt to include / require the file. The $pdoDriver can be determined by the value of the PDO::ATTR_DRIVER_NAME attribute for a pdo object. A reflection of the $className is returned.
public static registerClassWithDriver ( string $className, string $pdoDriver ) : ReflectionClass
$className string
$pdoDriver string
리턴 ReflectionClass

splitTableName() 공개 메소드

Returns an associative array containing the 'schema' and the 'table'.
public splitTableName ( string $fullTableName ) : array
$fullTableName string
리턴 array

프로퍼티 상세

$metaDataClassMap 보호되어 있는 정적으로 프로퍼티

protected static $metaDataClassMap

$pdo 보호되어 있는 프로퍼티

The PDO connection used to retreive database meta data
protected PDO $pdo
리턴 PDO

$schema 보호되어 있는 프로퍼티

The default schema name for the meta data object.
protected string $schema
리턴 string

$schemaObjectQuoteChar 보호되어 있는 프로퍼티

The character used to quote schema objects.
protected $schemaObjectQuoteChar

$truncateCommand 보호되어 있는 프로퍼티

The command used to perform a TRUNCATE operation.
protected $truncateCommand