Methods

__construct()

__construct(array $result, string $sql, mixed $as_object) 

Parameters

$result

array

$sql

string

$as_object

mixed

Result destruction cleans up all open result sets.

__destruct() : void

cached()

cached() : \Fuel\Core\Database_PDO_Cached

fluent This method is part of a fluent interface and will return the same instance

Returns

Implements [Iterator::current], returns the current row.

current() : mixed

Returns

mixed

Implements [ArrayAccess::offsetExists], determines if row exists.

offsetExists(integer $offset) : boolean

if (isset($result[10])) { // Row 10 exists }

Parameters

$offset

integer

Returns

boolean

Implements [ArrayAccess::offsetGet], gets a given row.

offsetGet(integer $offset) : mixed

$row = $result[10];

Parameters

$offset

integer

Returns

mixed

Implements [ArrayAccess::offsetSet], throws an error.

offsetSet(integer $offset, mixed $value) 

[!!] You cannot modify a database result.

Parameters

$offset

integer

$value

mixed

Exceptions

\FuelException

Implements [ArrayAccess::offsetUnset], throws an error.

offsetUnset(integer $offset) 

[!!] You cannot modify a database result.

Parameters

$offset

integer

Exceptions

\FuelException

seek()

seek(integer $offset) : bool

Parameters

$offset

integer

Returns

bool