Свойство | Тип | Описание | |
---|---|---|---|
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection | The database connection this dataset is using. | |
$tables | array | An array of ITable objects. |
Метод | Описание | |
---|---|---|
__construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) | Creates a new dataset using the given database connection. | |
addTable ( $tableName, $query = NULL ) | ||
getTable ( string $tableName ) : PHPUnit_Extensions_Database_DB_Table | Returns a table object for the given table. | |
getTableNames ( ) : Array | Returns a list of table names for the database |
Метод | Описание | |
---|---|---|
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 |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | ||
$reverse | boolean | |
Результат | PHPUnit_Extensions_Database_DB_TableIterator |
public getTableNames ( ) : Array | ||
Результат | Array |
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection | ||
Результат | PHPUnit_Extensions_Database_DB_IDatabaseConnection |