PDO Statement Iterator Class. More...
Public Member Functions | |
__construct (PDOStatement $statement) | |
Constructor. | |
seek ($position) | |
SeekableIterator::seek() Implementation. | |
count () | |
first () | |
Get the first item. | |
last () | |
Get the last item. | |
Protected Attributes | |
$_statement | |
Internal statement reference. | |
$_count | |
Internal counter. |
PDO Statement Iterator Class.
This class is a PDOStatement decorator to enable its use as an iterator instead of a traversable instance.
Definition at line 18 of file axPDOStatementIterator.class.php.
axPDOStatementIterator::__construct | ( | PDOStatement $ | statement | ) |
Constructor.
PDOStatement | $statement |
Definition at line 36 of file axPDOStatementIterator.class.php.
Countable::count() implementation
Get the number of items in the iterator.
Definition at line 60 of file axPDOStatementIterator.class.php.
axPDOStatementIterator::seek | ( | $ | position | ) |
SeekableIterator::seek() Implementation.
integer | $position | The position to seek |
Definition at line 45 of file axPDOStatementIterator.class.php.
integer axPDOStatementIterator::$_count [protected] |
Internal counter.
Definition at line 30 of file axPDOStatementIterator.class.php.
PDOStatement axPDOStatementIterator::$_statement [protected] |
Internal statement reference.
Definition at line 24 of file axPDOStatementIterator.class.php.