category Zend
package Zend_Db
subpackage ResultSet

 Methods

Constructor

__construct(string $returnType, null | \ArrayObject $arrayObjectPrototype) 

Parameters

$returnType

string

$arrayObjectPrototype

null\ArrayObject

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() : array | \ArrayObject | null

Returns

array\ArrayObjectnull

Get the row object prototype

getArrayObjectPrototype() : \ArrayObject

Returns

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

getReturnType() : string

Returns

string

Set the data source for the result set

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

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

Parameters

$dataSource

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

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

Cast result set to array of arrays

toArray() : array
Inherited

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

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

 

Allowed return types

$allowedReturnTypes : array

 

$arrayObjectPrototype

$arrayObjectPrototype : \ArrayObject

 

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
 

$position

$position 
Inherited

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

Return type to use when returning an object from the set

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

 Constants

 

TYPE_ARRAY

TYPE_ARRAY 

 

TYPE_ARRAYOBJECT

TYPE_ARRAYOBJECT