Zend Framework
3.0
|
Public Member Functions | |
__construct (HydratorInterface $hydrator=null, $objectPrototype=null) | |
Constructor. | |
setObjectPrototype ($objectPrototype) | |
Set the row object prototype. | |
getObjectPrototype () | |
Get the row object prototype. | |
setHydrator (HydratorInterface $hydrator) | |
Set the hydrator to use for each row object. | |
getHydrator () | |
Get the hydrator to use for each row object. | |
current () | |
Iterator: get current item. | |
toArray () | |
Cast result set to array of arrays. | |
Public Member Functions inherited from AbstractResultSet | |
initialize ($dataSource) | |
Set the data source for the result set. | |
buffer () | |
isBuffered () | |
getDataSource () | |
Get the data source used to create the result set. | |
getFieldCount () | |
Retrieve count of fields in individual rows of the result set. | |
next () | |
Iterator: move pointer to next item. | |
key () | |
Iterator: retrieve current key. | |
current () | |
Iterator: get current item. | |
valid () | |
Iterator: is pointer valid? | |
rewind () | |
Iterator: rewind. | |
count () | |
Countable: return count of rows. | |
toArray () | |
Cast result set to array of arrays. | |
Protected Attributes | |
$hydrator = null | |
$objectPrototype = null | |
Protected Attributes inherited from AbstractResultSet | |
$buffer = null | |
$count = null | |
$dataSource = null | |
$fieldCount = null | |
$position = 0 | |
__construct | ( | HydratorInterface | $hydrator = null , |
$objectPrototype = null |
|||
) |
Constructor.
null | HydratorInterface | $hydrator | |
null | object | $objectPrototype |
current | ( | ) |
Iterator: get current item.
getHydrator | ( | ) |
Get the hydrator to use for each row object.
getObjectPrototype | ( | ) |
Get the row object prototype.
setHydrator | ( | HydratorInterface | $hydrator | ) |
Set the hydrator to use for each row object.
HydratorInterface | $hydrator |
setObjectPrototype | ( | $objectPrototype | ) |
Set the row object prototype.
object | $objectPrototype |
Exception\InvalidArgumentException |
toArray | ( | ) |
Cast result set to array of arrays.
Exception\RuntimeException | if any row is not castable to an array |
|
protected |
|
protected |