PHP 클래스 PHPUnit_Extensions_Database_DataSet_AbstractXmlDataSet, qcodo

저자: Mike Lively ([email protected])
상속: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
파일 보기 프로젝트 열기: qcodo/qcodo

보호된 프로퍼티들

프로퍼티 타입 설명
$tables array
$xmlFileContents SimpleXmlElement

공개 메소드들

메소드 설명
__construct ( $xmlFile ) Creates a new dataset using the given tables.

보호된 메소드들

메소드 설명
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.
createTables ( array &$tableColumns, array &$tableValues )
getOrCreateTable ( string $tableName, $tableColumns ) : PHPUnit_Extensions_Database_DataSet_ITable Returns the table with the matching name. If the table does not exist an empty one is created.
getTableInfo ( array &$tableColumns, array &$tableValues ) Reads the simple xml object and creates the appropriate tables and meta data for this dataset.

메소드 상세

__construct() 공개 메소드

Creates a new dataset using the given tables.
public __construct ( $xmlFile )

createIterator() 보호된 메소드

Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator
$reverse boolean
리턴 PHPUnit_Extensions_Database_DataSet_ITableIterator

createTables() 보호된 메소드

protected createTables ( array &$tableColumns, array &$tableValues )
$tableColumns array
$tableValues array

getOrCreateTable() 보호된 메소드

Returns the table with the matching name. If the table does not exist an empty one is created.
protected getOrCreateTable ( string $tableName, $tableColumns ) : PHPUnit_Extensions_Database_DataSet_ITable
$tableName string
리턴 PHPUnit_Extensions_Database_DataSet_ITable

getTableInfo() 추상적인 보호된 메소드

Reads the simple xml object and creates the appropriate tables and meta data for this dataset.
abstract protected getTableInfo ( array &$tableColumns, array &$tableValues )
$tableColumns array
$tableValues array

프로퍼티 상세

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

protected array $tables
리턴 array

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

protected SimpleXmlElement $xmlFileContents
리턴 SimpleXmlElement