package Default
inherited_from \Zend\Db\ResultSet\AbstractResultSet

 Methods

Constructor

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

Parameters

$hydrator

null\Zend\Stdlib\Hydrator\HydratorInterface

$objectPrototype

nullobject

buffer()

buffer() 
Inherited

Countable: return count of rows

count() : integer
Inherited

Returns

integer

Iterator: get current item

current() : object
inherited_from \Zend\Db\ResultSet\AbstractResultSet::current()

Returns

object

Iterator: get current item

current() : array
Inherited

Returns

array

Get the data source used to create the result set

getDataSource() : null | \Iterator
Inherited

Returns

null\Iterator

Retrieve count of fields in individual rows of the result set

getFieldCount() : integer
Inherited
inherited_from \Zend\Db\ResultSet\ResultSetInterface::getFieldCount()

Returns

integer

Get the hydrator to use for each row object

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

Returns

\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\ResultSetInterface::initialize()

Parameters

$dataSource

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

Exceptions

\Zend\Db\ResultSet\Exception\InvalidArgumentException

Returns

\Zend\Db\ResultSet\ResultSet

isBuffered()

isBuffered() 
Inherited

Iterator: retrieve current key

key() : mixed
Inherited

Returns

mixed

Iterator: move pointer to next item

next() : void
Inherited

Iterator: rewind

rewind() : void
Inherited

Set the hydrator to use for each row object

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

Parameters

$hydrator

\Zend\Stdlib\Hydrator\HydratorInterface

Returns

\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

\Zend\Db\ResultSet\ResultSet

Cast result set to array of arrays

toArray() : array
inherited_from \Zend\Db\ResultSet\AbstractResultSet::toArray()

Exceptions

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

Returns

array

Cast result set to array of arrays

toArray() : array
Inherited

Exceptions

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

Returns

array

Iterator: is pointer valid?

valid() : boolean
Inherited

Returns

boolean

 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

Default

null
 

$count

$count : null | integer

Default

null
 

$dataSource

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

Default

null
 

$fieldCount

$fieldCount : integer

Default

null
 

$hydrator

$hydrator : \Zend\Stdlib\Hydrator\HydratorInterface

Default

null
 

$objectPrototype

$objectPrototype : null

Default

null
 

$position

$position : integer

Default

0