CI_DB_result Class Reference

Inherited by CI_DB_mssql_result, CI_DB_mysql_result, CI_DB_mysqli_result, CI_DB_oci8_result, CI_DB_odbc_result, CI_DB_postgre_result, and CI_DB_sqlite_result.

List of all members.

Public Member Functions

 result ($type= 'object')
 result_object ()
 result_array ()
 row ($n=0, $type= 'object')
 set_row ($key, $value=NULL)
 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_seek ()
 _fetch_assoc ()
 _fetch_object ()

Public Attributes

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


Member Function Documentation

CI_DB_result::_data_seek (  ) 

CI_DB_result::_fetch_assoc (  ) 

CI_DB_result::_fetch_object (  ) 

CI_DB_result::field_data (  ) 

CI_DB_result::first_row ( type = 'object'  ) 

Returns the "first" row

public

Returns:
object

CI_DB_result::free_result (  ) 

CI_DB_result::last_row ( type = 'object'  ) 

Returns the "last" row

public

Returns:
object

CI_DB_result::list_fields (  ) 

CI_DB_result::next_row ( type = 'object'  ) 

Returns the "next" row

public

Returns:
object

CI_DB_result::num_fields (  ) 

CI_DB_result::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.

Reimplemented in CI_DB_mssql_result, CI_DB_mysql_result, CI_DB_mysqli_result, CI_DB_oci8_result, CI_DB_odbc_result, CI_DB_postgre_result, and CI_DB_sqlite_result.

CI_DB_result::previous_row ( type = 'object'  ) 

Returns the "previous" row

public

Returns:
object

CI_DB_result::result ( type = 'object'  ) 

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

public

Parameters:
string can be "object" or "array"
Returns:
mixed either a result object or array

CI_DB_result::result_array (  ) 

Query result. "array" version.

public

Returns:
array

Reimplemented in CI_DB_oci8_result.

CI_DB_result::result_object (  ) 

Query result. "object" version.

public

Returns:
object

CI_DB_result::row ( n = 0,
type = 'object' 
)

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

public

Parameters:
string 
string can be "object" or "array"
Returns:
mixed either a result object or array

CI_DB_result::row_array ( n = 0  ) 

Returns a single result row - array version

public

Returns:
array

CI_DB_result::row_object ( n = 0  ) 

Returns a single result row - object version

public

Returns:
object

CI_DB_result::set_row ( key,
value = NULL 
)

Assigns an item into a particular column slot

public

Returns:
object


Member Data Documentation

CI_DB_result::$conn_id = NULL

CI_DB_result::$current_row = 0

CI_DB_result::$num_rows = 0

CI_DB_result::$result_array = array()

CI_DB_result::$result_id = NULL

CI_DB_result::$result_object = array()

CI_DB_result::$row_data = NULL


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

Generated on Sun Nov 16 16:09:13 2008 for CodeIgniter by  doxygen 1.5.7.1