Methods

buffer()

buffer() 

Countable: return count of rows

count() : int

Returns

int

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

Returns

int

Set the data source for the result set

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

isBuffered()

isBuffered() 

Iterator: retrieve current key

key() : mixed

Returns

mixed

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

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

 

$count

$count : null | int

 

$dataSource

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

 

$fieldCount

$fieldCount : int

 

$position

$position : int