\JDatabaseIterator
Joomla Platform Database Driver Class
Synopsis
class JDatabaseIterator
implements
Countable,Iterator
{
- // members
- protected $cursor;
- protected $class;
- private $_column;
- private $_current;
- private scalar $_key;
- private $_fetched;
- // methods
- public void __construct()
- public void __destruct()
- public current()
- public scalar key()
- public void next()
- public void rewind()
- public boolean valid()
- protected abstract mixed fetchObject()
- protected abstract void freeResult()
Hierarchy
Extended by
- JDatabaseIteratorAzure
- JDatabaseIteratorSqlite
- JDatabaseIteratorMysql
- JDatabaseIteratorPostgresql
- JDatabaseIteratorMysqli
- JDatabaseIteratorSqlsrv
- JDatabaseIteratorPdo
- JDatabaseIteratorOracle
Implements
Members
private
- $_column
—
mixed
The name of the column to use for the key of the database record. - $_current
—
mixed
The current database record. - $_fetched
—
integer
The number of fetched records. - $_key
—
scalar
A numeric or string key for the current database record.
protected
- $class
—
string
The class of object to create. - $cursor
—
mixed
The database cursor.
Methods
protected
- fetchObject() — Method to fetch a row from the result set cursor as an object.
- freeResult() — Method to free up the memory used for the result set.
public
- __construct() — Database iterator constructor.
- __destruct() — Database iterator destructor.
- current() — The current element in the iterator.
- key() — The key of the current element in the iterator.
- next() — Moves forward to the next result from the SQL query.
- rewind() — Rewinds the iterator.
- valid() — Checks if the current position of the iterator is valid.