PHP Класс PHPUnit_Extensions_Database_DataSet_AbstractXmlDataSet, qcodo

Автор: Mike Lively ([email protected])
Наследование: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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