__construct()
__destruct()
as_array()
cached()
count()
current()
get()
key()
next()
rewind()
sanitize()
sanitized()
unsanitize()
valid()
$_as_object
$_current_row
$_query
$_result
$_results
$_row
$_sanitization_enabled
$_total_rows
__construct(mixed $result, string $sql, mixed $as_object)
mixedquery result
stringSQL query
mixedobject
__destruct() : void
as_array(string $key, string $value) : array
// Indexed array of all rows $rows = $result->as_array();
// Associative array of rows by "id"
$rows = $result->as_array('id');
// Associative array of rows, "id" => "name"
$rows = $result->as_array('id', 'name');
stringcolumn for associative keys
stringcolumn for values
arraycached() : \Fuel\Core\Database_Result
count() : integer
echo count($result);
integercurrent() : mixed
mixedget(string $name, mixed $default) : mixed
// Get the "id" value $id = $result->get('id');
stringcolumn to get
mixeddefault value if the column does not exist
mixedkey() : integer
integernext()
rewind()
sanitize() : \Fuel\Core\Database_Result
| fluent | This method is part of a fluent interface and will return the same instance | 
|---|
sanitized() : bool
boolunsanitize() : \Fuel\Core\Database_Result
| fluent | This method is part of a fluent interface and will return the same instance | 
|---|
valid() : boolean
boolean$_as_object : bool
$_current_row : int
$_query : string
$_result : resource
$_results : array
$_row : mixed
$_sanitization_enabled : bool
$_total_rows : int