PHP Class lithium\data\source\database\adapter\pdo\Result

It also provides a simple caching mechanism which stores the result after the first load. You are then free to iterate over the result back and forth through the provided methods and don't have to think about hitting the database too often. On initialization, it needs a PDOStatement to operate on. You are then free to use all methods provided by the Iterator interface.
Inheritance: extends lithium\data\source\Result
Show file Open project: unionofrad/lithium Class Usage Examples

Protected Methods

Method Description
_fetch ( ) : array | boolean | null Fetches the next result from the resource.

Method Details

_fetch() protected method

Fetches the next result from the resource.
protected _fetch ( ) : array | boolean | null
return array | boolean | null Returns a key/value pair for the next result, `null` if there is none, `false` if something bad happened.