Methods

Constructor

__construct(\Zend\Stdlib\Hydrator\HydratorInterface $hydrator, null | object $objectPrototype) 

Parameters

$objectPrototype

nullobject

buffer()

buffer() 
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::buffer()

Countable: return count of rows

count() : int
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::count()

Returns

int

Iterator: get current item

current() : object

Returns

object

Get the data source used to create the result set

getDataSource() : null | \Iterator
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::getDataSource()

Returns

null\Iterator

Retrieve count of fields in individual rows of the result set

getFieldCount() : int
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::getFieldCount()

Returns

int

Get the hydrator to use for each row object

getHydrator() : \Zend\Stdlib\Hydrator\HydratorInterface

Get the row object prototype

getObjectPrototype() : object

Returns

object

Set the data source for the result set

initialize(array | \Iterator | \IteratorAggregate | \Zend\Db\Adapter\Driver\ResultInterface $dataSource) : \Zend\Db\ResultSet\ResultSet
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::initialize()

Parameters

$dataSource

array\Iterator\IteratorAggregate\Zend\Db\Adapter\Driver\ResultInterface

Exceptions

\Zend\Db\ResultSet\Exception\InvalidArgumentException

Returns

isBuffered()

isBuffered() 
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::isBuffered()

Iterator: retrieve current key

key() : mixed
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::key()

Returns

mixed

Iterator: rewind

rewind() : void
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::rewind()

Set the hydrator to use for each row object

setHydrator(\Zend\Stdlib\Hydrator\HydratorInterface $hydrator) : \Zend\Db\ResultSet\HydratingResultSet

Set the row object prototype

setObjectPrototype(object $objectPrototype) : \Zend\Db\ResultSet\ResultSet

Parameters

$objectPrototype

object

Exceptions

\Zend\Db\ResultSet\Exception\InvalidArgumentException

Returns

Cast result set to array of arrays

toArray() : array

Exceptions

\Zend\Db\ResultSet\Exception\RuntimeException if any row is not castable to an array

Returns

array

Iterator: is pointer valid?

valid() : bool
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::valid()

Returns

bool

 Properties

 

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

$buffer : mixed
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::$$buffer
 

$count

$count : null | int
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::$$count
 

$dataSource

$dataSource : \Iterator | \IteratorAggregate | \Zend\Db\Adapter\Driver\ResultInterface
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::$$dataSource
 

$fieldCount

$fieldCount : int
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::$$fieldCount
 

$hydrator

$hydrator : \Zend\Stdlib\Hydrator\HydratorInterface

 

$objectPrototype

$objectPrototype : null

 

$position

$position : int
Inherited

inherited_from \Zend\Db\ResultSet\AbstractResultSet::$$position