Property | Type | Description | |
---|---|---|---|
$tables | array | ||
$xmlFileContents | SimpleXmlElement |
Method | Description | |
---|---|---|
__construct ( $xmlFile ) | Creates a new dataset using the given tables. |
Method | Description | |
---|---|---|
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. |
public __construct ( $xmlFile ) |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator | ||
$reverse | boolean | |
return | PHPUnit_Extensions_Database_DataSet_ITableIterator |
protected createTables ( array &$tableColumns, array &$tableValues ) | ||
$tableColumns | array | |
$tableValues | array |
protected getOrCreateTable ( string $tableName, $tableColumns ) : PHPUnit_Extensions_Database_DataSet_ITable | ||
$tableName | string | |
return | PHPUnit_Extensions_Database_DataSet_ITable |
abstract protected getTableInfo ( array &$tableColumns, array &$tableValues ) | ||
$tableColumns | array | |
$tableValues | array |