PHP Class PHPUnit_Extensions_Database_DataSet_DefaultTableIterator, qcodo

Author: Mike Lively ([email protected])
Inheritance: implements PHPUnit_Extensions_Database_DataSet_ITableIterator
Mostrar archivo Open project: qcodo/qcodo

Protected Properties

Property Type Description
$reverse boolean If this property is true then the tables will be iterated in reverse order.
$tables Array An array of tables in the iterator.

Public Methods

Method Description
__construct ( array $tables, boolean $reverse = FALSE ) Creates a new default table iterator object.
current ( ) : PHPUnit_Extensions_Database_DataSet_ITable Returns the current table.
getTable ( ) : PHPUnit_Extensions_Database_DataSet_ITable Returns the current table.
getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData Returns the current table's meta data.
key ( ) : string Returns the name of the current table.
next ( ) advances to the next element.
rewind ( ) Rewinds to the first element
valid ( ) : boolean Returns true if the current index is valid

Method Details

__construct() public method

Creates a new default table iterator object.
public __construct ( array $tables, boolean $reverse = FALSE )
$tables array
$reverse boolean

current() public method

Returns the current table.
public current ( ) : PHPUnit_Extensions_Database_DataSet_ITable
return PHPUnit_Extensions_Database_DataSet_ITable

getTable() public method

Returns the current table.
public getTable ( ) : PHPUnit_Extensions_Database_DataSet_ITable
return PHPUnit_Extensions_Database_DataSet_ITable

getTableMetaData() public method

Returns the current table's meta data.
public getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData
return PHPUnit_Extensions_Database_DataSet_ITableMetaData

key() public method

Returns the name of the current table.
public key ( ) : string
return string

next() public method

advances to the next element.
public next ( )

rewind() public method

Rewinds to the first element
public rewind ( )

valid() public method

Returns true if the current index is valid
public valid ( ) : boolean
return boolean

Property Details

$reverse protected_oe property

If this property is true then the tables will be iterated in reverse order.
protected bool $reverse
return boolean

$tables protected_oe property

An array of tables in the iterator.
protected Array $tables
return Array