PHP Class PHPUnit_Extensions_Database_DataSet_QueryDataSet, qcodo

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

Protected Properties

Property Type Description
$databaseConnection PHPUnit_Extensions_Database_DB_IDatabaseConnection The database connection this dataset is using.
$tables array An array of ITable objects.

Public Methods

Method 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

Protected Methods

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.

Method Details

__construct() public method

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 method

public addTable ( $tableName, $query = NULL )

createIterator() protected method

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
return PHPUnit_Extensions_Database_DB_TableIterator

getTable() public method

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

getTableNames() public method

Returns a list of table names for the database
public getTableNames ( ) : Array
return Array

Property Details

$databaseConnection protected_oe property

The database connection this dataset is using.
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection
return PHPUnit_Extensions_Database_DB_IDatabaseConnection

$tables protected_oe property

An array of ITable objects.
protected array $tables
return array