My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Data Fields | Protected Member Functions
CI_DB_result Class Reference
Inheritance diagram for CI_DB_result:
CI_DB_cubrid_result CI_DB_mssql_result CI_DB_mysql_result CI_DB_mysqli_result CI_DB_oci8_result CI_DB_odbc_result CI_DB_pdo_result CI_DB_postgre_result CI_DB_sqlite_result CI_DB_sqlsrv_result

Public Member Functions

 result ($type= 'object')
 
 custom_result_object ($class_name)
 
 result_object ()
 
 result_array ()
 
 row ($n=0, $type= 'object')
 
 set_row ($key, $value=NULL)
 
 custom_row_object ($n, $type)
 
 row_object ($n=0)
 
 row_array ($n=0)
 
 first_row ($type= 'object')
 
 last_row ($type= 'object')
 
 next_row ($type= 'object')
 
 previous_row ($type= 'object')
 
 num_rows ()
 
 num_fields ()
 
 list_fields ()
 
 field_data ()
 
 free_result ()
 

Data Fields

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

Protected Member Functions

 _data_seek ()
 
 _fetch_assoc ()
 
 _fetch_object ()
 

Member Function Documentation

custom_result_object (   $class_name)

Custom query result.

Parameters
class_nameA string that represents the type of object you want back
Returns
array of objects
custom_row_object (   $n,
  $type 
)

Returns a single result row - custom object version

public

Returns
object
first_row (   $type = 'object')

Returns the "first" row

public

Returns
object
last_row (   $type = 'object')

Returns the "last" row

public

Returns
object
next_row (   $type = 'object')

Returns the "next" row

public

Returns
object
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 (   $type = 'object')

Returns the "previous" row

public

Returns
object
result (   $type = 'object')

Query result. Acts as a wrapper function for the following functions.

public

Parameters
stringcan be "object" or "array"
Returns
mixed either a result object or array
result_array ( )

Query result. "array" version.

public

Returns
array
result_object ( )

Query result. "object" version.

public

Returns
object
row (   $n = 0,
  $type = 'object' 
)

Query result. Acts as a wrapper function for the following functions.

public

Parameters
string
stringcan be "object" or "array"
Returns
mixed either a result object or array
row_array (   $n = 0)

Returns a single result row - array version

public

Returns
array
row_object (   $n = 0)

Returns a single result row - object version

public

Returns
object
set_row (   $key,
  $value = NULL 
)

Assigns an item into a particular column slot

public

Returns
object

The documentation for this class was generated from the following file: