-
Notifications
You must be signed in to change notification settings - Fork 0
CI_DB_cubrid_result
CUBRID Result Class
This class extends the parent result class: CI_DB_result
- Class name: CI_DB_cubrid_result
- Namespace:
- Parent class: CI_DB_result
public resource $conn_id
Connection ID
- Visibility: public
public resource $result_id
Result ID
- Visibility: public
public array<mixed,array> $result_array = array()
Result Array
- Visibility: public
public array<mixed,object> $result_object = array()
Result Object
- Visibility: public
public array<mixed,object> $custom_result_object = array()
Custom Result Object
- Visibility: public
public integer $current_row
Current Row index
- Visibility: public
public integer $num_rows
Number of rows
- Visibility: public
public array $row_data
Row data
- Visibility: public
integer CI_DB_result::num_rows()
Number of rows in the result set
- Visibility: public
- This method is defined by CI_DB_result
integer CI_DB_result::num_fields()
Number of fields in the result set
Overridden by driver result classes.
- Visibility: public
- This method is defined by CI_DB_result
array CI_DB_result::list_fields()
Fetch Field Names
Generates an array of column names.
Overridden by driver result classes.
- Visibility: public
- This method is defined by CI_DB_result
array CI_DB_result::field_data()
Field data
Generates an array of objects containing field meta-data.
Overridden by driver result classes.
- Visibility: public
- This method is defined by CI_DB_result
void CI_DB_result::free_result()
Free the result
Overridden by driver result classes.
- Visibility: public
- This method is defined by CI_DB_result
boolean CI_DB_result::data_seek(integer $n)
Data Seek
Moves the internal pointer to the desired offset. We call this internally before fetching results to make sure the result set starts at zero.
Overridden by driver result classes.
- Visibility: public
- This method is defined by CI_DB_result
- $n integer
array CI_DB_result::_fetch_assoc()
Result - associative array
Returns the result set as an array.
Overridden by driver result classes.
- Visibility: protected
- This method is defined by CI_DB_result
object CI_DB_result::_fetch_object(string $class_name)
Result - object
Returns the result set as an object.
Overridden by driver result classes.
- Visibility: protected
- This method is defined by CI_DB_result
- $class_name string
void CI_DB_result::__construct(object $driver_object)
Constructor
- Visibility: public
- This method is defined by CI_DB_result
- $driver_object object
array CI_DB_result::result(string $type)
Query result. Acts as a wrapper function for the following functions.
- Visibility: public
- This method is defined by CI_DB_result
- $type string - <p>'object', 'array' or a custom class name</p>
array CI_DB_result::custom_result_object(string $class_name)
Custom query result.
- Visibility: public
- This method is defined by CI_DB_result
- $class_name string
array CI_DB_result::result_object()
Query result. "object" version.
- Visibility: public
- This method is defined by CI_DB_result
array CI_DB_result::result_array()
Query result. "array" version.
- Visibility: public
- This method is defined by CI_DB_result
mixed CI_DB_result::row(mixed $n, string $type)
Row
A wrapper method.
- Visibility: public
- This method is defined by CI_DB_result
- $n mixed
- $type string - <p>'object' or 'array'</p>
void CI_DB_result::set_row(mixed $key, mixed $value)
Assigns an item into a particular column slot
- Visibility: public
- This method is defined by CI_DB_result
- $key mixed
- $value mixed
object CI_DB_result::custom_row_object(integer $n, string $type)
Returns a single result row - custom object version
- Visibility: public
- This method is defined by CI_DB_result
- $n integer
- $type string
object CI_DB_result::row_object(integer $n)
Returns a single result row - object version
- Visibility: public
- This method is defined by CI_DB_result
- $n integer
array CI_DB_result::row_array(integer $n)
Returns a single result row - array version
- Visibility: public
- This method is defined by CI_DB_result
- $n integer
mixed CI_DB_result::first_row(string $type)
Returns the "first" row
- Visibility: public
- This method is defined by CI_DB_result
- $type string
mixed CI_DB_result::last_row(string $type)
Returns the "last" row
- Visibility: public
- This method is defined by CI_DB_result
- $type string
mixed CI_DB_result::next_row(string $type)
Returns the "next" row
- Visibility: public
- This method is defined by CI_DB_result
- $type string
mixed CI_DB_result::previous_row(string $type)
Returns the "previous" row
- Visibility: public
- This method is defined by CI_DB_result
- $type string
mixed CI_DB_result::unbuffered_row(string $type)
Returns an unbuffered row and move pointer to next row
- Visibility: public
- This method is defined by CI_DB_result
- $type string - <p>'array', 'object' or a custom class name</p>