package Default

 Methods

buffer()

buffer() 

Countable: return count of rows

count() : integer

Returns

integer

Iterator: get current item

current() : array

Returns

array

Get the data source used to create the result set

getDataSource() : null | \Iterator

Returns

null\Iterator

Retrieve count of fields in individual rows of the result set

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

Returns

integer

Set the data source for the result set

initialize(array|\Iterator|\IteratorAggregate|\Zend\Db\Adapter\Driver\ResultInterface $dataSource) : \Zend\Db\ResultSet\ResultSet
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() 

Iterator: retrieve current key

key() : mixed

Returns

mixed

Iterator: move pointer to next item

next() : void

Iterator: rewind

rewind() : void

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() : boolean

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
 

$position

$position : integer

Default

0