package Default
inherited_from \Zend\Db\ResultSet\AbstractResultSet

 Methods

Constructor

__construct(string $returnType = self::TYPE_ARRAYOBJECT, null|\ArrayObject $arrayObjectPrototype = null

Parameters

$returnType

string

$arrayObjectPrototype

null\ArrayObject

buffer()

buffer() 
Inherited

Countable: return count of rows

count() : integer
Inherited

Returns

integer

Iterator: get current item

current() : array | \ArrayObject | null
inherited_from \Zend\Db\ResultSet\AbstractResultSet::current()

Returns

array\ArrayObjectnull

Iterator: get current item

current() : array
Inherited

Returns

array

Get the row object prototype

getArrayObjectPrototype() : \ArrayObject

Returns

\ArrayObject

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 return type to use when returning objects from the set

getReturnType() : string

Returns

string

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 row object prototype

setArrayObjectPrototype(\ArrayObject $arrayObjectPrototype) : \Zend\Db\ResultSet\ResultSet

Parameters

$arrayObjectPrototype

\ArrayObject

Exceptions

\Zend\Db\ResultSet\Exception\InvalidArgumentException

Returns

\Zend\Db\ResultSet\ResultSet

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

 

Allowed return types

$allowedReturnTypes : array

Default

array(self::TYPE_ARRAYOBJECT, self::TYPE_ARRAY)
 

$arrayObjectPrototype

$arrayObjectPrototype : \ArrayObject

Default

null
 

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
 

Return type to use when returning an object from the set

$returnType : \Zend\Db\ResultSet\ResultSet::TYPE_ARRAYOBJECT | \Zend\Db\ResultSet\ResultSet::TYPE_ARRAY

Default

self::TYPE_ARRAYOBJECT

 Constants

 

TYPE_ARRAY

TYPE_ARRAY = 'array' 
 

TYPE_ARRAYOBJECT

TYPE_ARRAYOBJECT = 'arrayobject'