PHP Class PHPUnit_Extensions_Database_DataSet_QueryDataSet, qcodo

Author: Mike Lively ([email protected])
Inheritance: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$databaseConnection PHPUnit_Extensions_Database_DB_IDatabaseConnection The database connection this dataset is using.
$tables array An array of ITable objects.

Méthodes publiques

Méthode Description
__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

Méthodes protégées

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.

Method Details

__construct() public méthode

Creates a new dataset using the given database connection.
public __construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection )
$databaseConnection PHPUnit_Extensions_Database_DB_IDatabaseConnection

addTable() public méthode

public addTable ( $tableName, $query = NULL )

createIterator() protected méthode

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_DB_TableIterator
$reverse boolean
Résultat PHPUnit_Extensions_Database_DB_TableIterator

getTable() public méthode

Returns a table object for the given table.
public getTable ( string $tableName ) : PHPUnit_Extensions_Database_DB_Table
$tableName string
Résultat PHPUnit_Extensions_Database_DB_Table

getTableNames() public méthode

Returns a list of table names for the database
public getTableNames ( ) : Array
Résultat Array

Property Details

$databaseConnection protected_oe property

The database connection this dataset is using.
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection
Résultat PHPUnit_Extensions_Database_DB_IDatabaseConnection

$tables protected_oe property

An array of ITable objects.
protected array $tables
Résultat array