Zend\Db\Adapter\Driver\Pdo\Result
Synopsis
class Result
implements
Iterator,ResultInterface
{
- // constants
- const STATEMENT_MODE_SCROLLABLE = 'scrollable';
- const STATEMENT_MODE_FORWARD = 'forward';
- // members
- protected string $statementMode;
- protected PDOStatement $resource;
- protected array $options;
- protected bool $currentComplete;
- protected mixed $currentData;
- protected integer $position;
- protected mixed $generatedValue;
- protected null $rowCount;
- // methods
- public Result initialize()
- public null buffer()
- public bool|null isBuffered()
- public mixed getResource()
- public array current()
- public mixed next()
- public mixed key()
- public void rewind()
- public bool valid()
- public int count()
- public int getFieldCount()
- public bool isQueryResult()
- public int getAffectedRows()
- public mixed|null getGeneratedValue()
Hierarchy
Implements
Constants
Name | Value |
---|---|
STATEMENT_MODE_SCROLLABLE | 'scrollable' |
STATEMENT_MODE_FORWARD | 'forward' |
Members
protected
- $currentComplete
—
Zend\Db\Adapter\Driver\Pdo\bool
Is the current complete? - $currentData
—
mixed
Track current item in recordset - $generatedValue — mixed
- $options — array
- $position
—
int
Current position of scrollable statement - $resource — \PDOStatement
- $rowCount — Zend\Db\Adapter\Driver\Pdo\null
- $statementMode — string
Methods
public
- buffer()
- count() — Count
- current() — Get the data
- getAffectedRows() — Get affected rows
- getFieldCount()
- getGeneratedValue()
- getResource() — Get resource
- initialize() — Initialize
- isBuffered()
- isQueryResult() — Is query result
- key() — Key
- next() — Next
- rewind()
- valid() — Valid