Zend\Db\ResultSet\AbstractResultSet
Synopsis
class AbstractResultSet
implements
Iterator,ResultSetInterface
{
- // members
- protected mixed $buffer;
- protected null|int $count;
- protected Iterator|IteratorAggregate|ResultInterface $dataSource;
- protected int $fieldCount;
- protected integer $position;
- // methods
- public ResultSet initialize()
- public void buffer()
- public void isBuffered()
- public null|Iterator getDataSource()
- public int getFieldCount()
- public void next()
- public mixed key()
- public array current()
- public bool valid()
- public void rewind()
- public int count()
- public array toArray()
Hierarchy
Extended by
Implements
Members
protected
- $buffer
—
mixed
if -1, datasource is already buffered if -2, implicitly disabling buffering in ResultSet if false, explicitly disabled if null, default state - nothing, but can buffer until iteration started if array, already buffering - $count — Zend\Db\ResultSet\null|int
- $dataSource — Zend\Db\ResultSet\Iterator|IteratorAggregate|ResultInterface
- $fieldCount — int
- $position — int
Methods
public
- buffer()
- count() — Countable: return count of rows
- current() — Iterator: get current item
- getDataSource() — Get the data source used to create the result set
- getFieldCount() — Retrieve count of fields in individual rows of the result set
- initialize() — Set the data source for the result set
- isBuffered()
- key() — Iterator: retrieve current key
- next() — Iterator: move pointer to next item
- rewind() — Iterator: rewind
- toArray() — Cast result set to array of arrays
- valid() — Iterator: is pointer valid?