Methods
Constructor
__construct(string $returnType, null | \ArrayObject $arrayObjectPrototype)
Parameters
$returnType
string
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
Get the row object prototype
getArrayObjectPrototype() : \ArrayObject
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
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() |
Cast result set to array of arrays
toArray() : array
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::toArray() |
Exceptions
Returns
array
Iterator: is pointer valid?
valid() : bool
Inherited
inherited_from |
\Zend\Db\ResultSet\AbstractResultSet::valid() |
Returns
bool
Properties
Allowed return types
$allowedReturnTypes : array
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 |
$position
$position : int
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_ARRAYOBJECT
TYPE_ARRAYOBJECT