Zend\Db\ResultSet\HydratingResultSet
Synopsis
class HydratingResultSet
extends AbstractResultSet
{
- // members
- protected HydratorInterface $hydrator;
- protected null $objectPrototype;
- // Inherited members from AbstractResultSet
- protected mixed $buffer;
- protected null|int $count;
- protected Iterator|IteratorAggregate|ResultInterface $dataSource;
- protected int $fieldCount;
- protected integer $position;
- // methods
- public void __construct()
- public ResultSet setObjectPrototype()
- public HydratingResultSet setHydrator()
- public HydratorInterface getHydrator()
- public current()
- public array toArray()
- // Inherited methods from AbstractResultSet
- 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
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
- $hydrator — Zend\Stdlib\Hydrator\HydratorInterface
- $objectPrototype — Zend\Db\ResultSet\null
- $position — int
Methods
public
- __construct() — Constructor
- current() — Iterator: get current item
- getHydrator() — Get the hydrator to use for each row object
- setHydrator() — Set the hydrator to use for each row object
- setObjectPrototype() — Set the row object prototype
- toArray() — Cast result set to array of arrays
Inherited from Zend\Db\ResultSet\AbstractResultSet
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?