Inheritances
Files
Overview
FRAMES
NO FRAMES

Class CI_DB_result

<Default>
|- class CI_DB_result
Defined in line 29 of file database/DB_result.php.
Database Result Class

This is the platform-independent result class.
This class will not be called directly. Rather, the adapter
class for the specific database will extend and instantiate it.
CategoryDatabase
AuthorExpressionEngine Dev Team
Linkhttp://codeigniter.com/user_guide/database/

Summary

Instance fields
+ $conn_id
+ $current_row
+ $num_rows
+ $result_array
+ $result_id
+ $result_object
+ $row_data
Instance methods
+ _data_seek()
+ _fetch_assoc()
+ _fetch_object()
+ field_data()
+ first_row() Returns the "first" row
+ free_result()
+ last_row() Returns the "last" row
+ list_fields()
+ next_row() Returns the "next" row
+ num_fields()
+ num_rows() The following functions are normally overloaded by the identically named
+ previous_row() Returns the "previous" row
+ result() Query result
+ result_array() Query result
+ result_object() Query result
+ row() Query result
+ row_array() Returns a single result row - array version
+ row_object() Returns a single result row - object version
+ set_row() Assigns an item into a particular column slot

Details

Instance fields

$conn_id
var $conn_id = NULL
$current_row
var $current_row = 0
$num_rows
var $num_rows = 0
$result_array
var $result_array = array()
$result_id
var $result_id = NULL
$result_object
var $result_object = array()
$row_data
var $row_data = NULL

Instance methods

first_row()
function first_row( $type = 'object')
Returns the "first" row
Parameters
$type
Returns object
Access public
last_row()
function last_row( $type = 'object')
Returns the "last" row
Parameters
$type
Returns object
Access public
next_row()
function next_row( $type = 'object')
Returns the "next" row
Parameters
$type
Returns object
Access public
num_rows()
function num_rows( )
The following functions are normally overloaded by the identically named
methods in the platform-specific driver -- except when query caching
is used. When caching is enabled we do not load the other driver.
These functions are primarily here to prevent undefined function errors
when a cached result object is in use. They are not otherwise fully
operational due to the unavailability of the database resource IDs with
cached results.
previous_row()
function previous_row( $type = 'object')
Returns the "previous" row
Parameters
$type
Returns object
Access public
result()
function result( $type = 'object')
Query result. Acts as a wrapper function for the following functions.
Parameters
$type
Returns mixed either a result object or array
Access public
result_array()
function result_array( )
Query result. "array" version.
Returns array
Access public
Overriden by result_array() in class : CI_DB_oci8_result
result_object()
function result_object( )
Query result. "object" version.
Returns object
Access public
row()
function row( $n
$type = 'object'
)
Query result. Acts as a wrapper function for the following functions.
Parameters
$n
$type
Returns mixed either a result object or array
Access public
row_array()
function row_array( $n)
Returns a single result row - array version
Parameters
$n
Returns array
Access public
row_object()
function row_object( $n)
Returns a single result row - object version
Parameters
$n
Returns object
Access public
set_row()
function set_row( $key
$value = NULL
)
Assigns an item into a particular column slot
Parameters
$key
$value
Returns object
Access public