Class ResultSet

Summary

Fully Qualified Name: Zend\Db\ResultSet\ResultSet
Extends: AbstractResultSet

Description

Methods

Name Description Defined By
__construct() Constructor ResultSet
buffer() AbstractResultSet
count() Countable: return count of rows AbstractResultSet
current() ResultSet
getArrayObjectPrototype() Get the row object prototype ResultSet
getDataSource() Get the data source used to create the result set AbstractResultSet
getFieldCount() Retrieve count of fields in individual rows of the result set AbstractResultSet
getReturnType() Get the return type to use when returning objects from the set ResultSet
initialize() Set the data source for the result set AbstractResultSet
isBuffered() AbstractResultSet
key() Iterator: retrieve current key AbstractResultSet
next() Iterator: move pointer to next item AbstractResultSet
rewind() Iterator: rewind AbstractResultSet
setArrayObjectPrototype() Set the row object prototype ResultSet
toArray() Cast result set to array of arrays AbstractResultSet
valid() Iterator: is pointer valid? AbstractResultSet

Method Details

__construct()

Constructor

Parameter Name Type Description
$returnType string
$arrayObjectPrototype null|\ArrayObject

Returns:

buffer()

Returns: self Provides a fluent interface

count()

Countable: return count of rows

Returns: int

current()

Returns: array|\ArrayObject|null

getArrayObjectPrototype()

Get the row object prototype

Returns: \ArrayObject

getDataSource()

Get the data source used to create the result set

Returns: null|\Iterator

getFieldCount()

Retrieve count of fields in individual rows of the result set

Returns: int

getReturnType()

Get the return type to use when returning objects from the set

Returns: string

initialize()

Set the data source for the result set

Parameter Name Type Description
$dataSource array|\Iterator|\IteratorAggregate|\ResultInterface

Returns: self Provides a fluent interface

isBuffered()

Returns: void

key()

Iterator: retrieve current key

Returns: mixed

next()

Iterator: move pointer to next item

Returns: void

rewind()

Iterator: rewind

Returns: void

setArrayObjectPrototype()

Set the row object prototype

Parameter Name Type Description
$arrayObjectPrototype \ArrayObject

Returns: self Provides a fluent interface

toArray()

Cast result set to array of arrays

Returns: array

valid()

Iterator: is pointer valid?

Returns: bool

Top