Methods
Constructor
__construct(\Zend\Stdlib\Hydrator\HydratorInterface $hydrator, null | object $objectPrototype)
Parameters
$objectPrototype
nullobject
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() : object
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 row object prototype
getObjectPrototype() : object
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: move pointer to next item
next() : void
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::next() |
Iterator: rewind
rewind() : void
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::rewind() |
Set the row object prototype
setObjectPrototype(object $objectPrototype) : \Zend\Db\ResultSet\ResultSet
Parameters
$objectPrototype
object
Exceptions
Returns
Cast result set to array of arrays
toArray() : array
Iterator: is pointer valid?
valid() : bool
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::valid() |
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
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::$$buffer |
$count
$count : null | int
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::$$count |
$fieldCount
$fieldCount : int
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::$$fieldCount |
$objectPrototype
$objectPrototype : null
$position
$position : int
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::$$position |