Class HydratingResultSet

Summary

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

Description

Methods

Name Description Defined By
__construct() Constructor HydratingResultSet
buffer() AbstractResultSet
count() Countable: return count of rows AbstractResultSet
current() Iterator: get current item HydratingResultSet
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
getHydrator() Get the hydrator to use for each row object HydratingResultSet
getObjectPrototype() Get the row object prototype HydratingResultSet
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
setHydrator() Set the hydrator to use for each row object HydratingResultSet
setObjectPrototype() Set the row object prototype HydratingResultSet
toArray() Cast result set to array of arrays HydratingResultSet
valid() Iterator: is pointer valid? AbstractResultSet

Method Details

__construct()

Constructor

Parameter Name Type Description
$hydrator null|\HydratorInterface
$objectPrototype null|object

Returns:

buffer()

Returns: self Provides a fluent interface

count()

Countable: return count of rows

Returns: int

current()

Iterator: get current item

Returns: object

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

getHydrator()

Get the hydrator to use for each row object

Returns: \HydratorInterface

getObjectPrototype()

Get the row object prototype

Returns: object

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

setHydrator()

Set the hydrator to use for each row object

Parameter Name Type Description
$hydrator \HydratorInterface

Returns: self Provides a fluent interface

setObjectPrototype()

Set the row object prototype

Parameter Name Type Description
$objectPrototype object

Returns: self Provides a fluent interface

toArray()

Cast result set to array of arrays

Returns: array

valid()

Iterator: is pointer valid?

Returns: bool

Top