◆ __construct()
__construct |
( |
|
$cursor, |
|
|
|
$column, |
|
|
|
$class, |
|
|
|
$config = array() |
|
) |
| |
Database iterator constructor.
- Paramètres
-
mixed | $cursor | The database cursor. |
string | $column | An option column to use as the iterator key. |
string | $class | The table class of the returned objects. |
array | $config | Configuration parameters to push to the table class |
- Exceptions
-
Références $class, $parts, FOFInflector\explode(), et FOFTable\getInstance().
◆ __destruct()
Database iterator destructor.
◆ current()
The current element in the iterator.
- Renvoie
- object
- Voir également
- Iterator::current()
◆ fetchObject()
Method to fetch a row from the result set cursor as an object.
- Renvoie
- mixed Either the next row from the result set or false if there are no more rows.
◆ freeResult()
Method to free up the memory used for the result set.
- Renvoie
- void
◆ getIterator()
static& getIterator |
( |
|
$dbName, |
|
|
|
$cursor, |
|
|
|
$column, |
|
|
|
$class, |
|
|
|
$config = array() |
|
) |
| |
|
static |
◆ getTable()
Returns the data in $this->_current as a FOFTable instance
- Renvoie
- FOFTable
- Exceptions
-
◆ key()
The key of the current element in the iterator.
- Renvoie
- scalar
- Voir également
- Iterator::key()
◆ next()
Moves forward to the next result from the SQL query.
- Renvoie
- void
- Voir également
- Iterator::next()
◆ rewind()
Rewinds the iterator.
This iterator cannot be rewound.
- Renvoie
- void
- Voir également
- Iterator::rewind()
◆ valid()
Checks if the current position of the iterator is valid.
- Renvoie
- boolean
- Voir également
- Iterator::valid()
◆ $_column
◆ $_current
◆ $_currentTable
◆ $_fetched
◆ $_key
◆ $_tableObject
◆ $class
◆ $cursor
La documentation de cette classe a été générée à partir du fichier suivant :