Property | Type | Description | |
---|---|---|---|
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection | The database connection this dataset is using. | |
$tables | array | An array of ITable objects. |
Method | Description | |
---|---|---|
__construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) | Creates a new dataset using the given database connection. | |
buildTableSelect ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $tableMetaData, PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection = NULL ) : unknown | Creates the query necessary to pull all of the data from a table. | |
getTable ( string $tableName ) : PHPUnit_Extensions_Database_DB_Table | Returns a table object for the given table. | |
getTableMetaData ( string $tableName ) : PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData | Returns a table meta data object for the given table. | |
getTableNames ( ) : Array | Returns a list of table names for the database |
Method | Description | |
---|---|---|
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned. |
public __construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) | ||
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection |
public static buildTableSelect ( PHPUnit_Extensions_Database_DataSet_ITableMetaData $tableMetaData, PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection = NULL ) : unknown | ||
$tableMetaData | PHPUnit_Extensions_Database_DataSet_ITableMetaData | |
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection | |
return | unknown |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | ||
$reverse | boolean | |
return | PHPUnit_Extensions_Database_DB_TableIterator |
public getTableMetaData ( string $tableName ) : PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData | ||
$tableName | string | |
return | PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData |
public getTableNames ( ) : Array | ||
return | Array |
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection | ||
return | PHPUnit_Extensions_Database_DB_IDatabaseConnection |