package Default

 Methods

Force buffering

buffer() : null
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::buffer()

Returns

null

Count

count() : integer

Returns

integer

Get the data

current() : array

Returns

array

Get affected rows

getAffectedRows() : integer
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::getAffectedRows()

Returns

integer

getFetchMode()

getFetchMode() : integer

Returns

integer

Get field count

getFieldCount() : integer
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::getFieldCount()

Returns

integer

Get generated value

getGeneratedValue() : mixed | null
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::getGeneratedValue()

Returns

mixednull

Get resource

getResource() : mixed
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::getResource()

Returns

mixed

Initialize

initialize(\PDOStatement $resource, $generatedValue, integer $rowCount = null) : \Zend\Db\Adapter\Driver\Pdo\Result

Parameters

$resource

\PDOStatement

$generatedValue

$rowCount

integer

Returns

\Zend\Db\Adapter\Driver\Pdo\Result

Check if is buffered

isBuffered() : boolean | null
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::isBuffered()

Returns

booleannull

Is query result

isQueryResult() : boolean
inherited_from \Zend\Db\Adapter\Driver\ResultInterface::isQueryResult()

Returns

boolean

Key

key() : mixed

Returns

mixed

Next

next() : mixed

Returns

mixed

rewind()

rewind() : void

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException

setFetchMode()

setFetchMode(integer $fetchMode) 

Parameters

$fetchMode

integer

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException on invalid fetch mode

Valid

valid() : boolean

Returns

boolean

 Properties

 

Is the current complete?

$currentComplete : boolean

Default

false
 

Track current item in recordset

$currentData : mixed

Default

null
 

$fetchMode

$fetchMode : integer

Default

\PDO::FETCH_ASSOC
 

$generatedValue

$generatedValue : mixed

Default

null
 

Result options

$options : array

Default

 

Current position of scrollable statement

$position : integer

Default

-1
 

$resource

$resource : \PDOStatement

Default

null
 

$rowCount

$rowCount : null

Default

null
 

$statementMode

$statementMode : string

Default

self::STATEMENT_MODE_FORWARD

 Constants

 

STATEMENT_MODE_FORWARD

STATEMENT_MODE_FORWARD = 'forward' 
 

STATEMENT_MODE_SCROLLABLE

STATEMENT_MODE_SCROLLABLE = 'scrollable'