Свойство | Type | Description | |
---|---|---|---|
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection | The database connection this dataset is using. | |
$tables | array | An array of ITable objects. |
Méthode | 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 |
Méthode | 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 | |
Résultat | unknown |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | ||
$reverse | boolean | |
Résultat | PHPUnit_Extensions_Database_DB_TableIterator |
public getTableMetaData ( string $tableName ) : PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData | ||
$tableName | string | |
Résultat | PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData |
public getTableNames ( ) : Array | ||
Résultat | Array |
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection | ||
Résultat | PHPUnit_Extensions_Database_DB_IDatabaseConnection |