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') | |
list_fields () | |
free_result () | |
reset_result ($r_id) | |
_data_seek ($n=0) |
Database Result Class
This is a wrapper of normal result operations for PostgreSQL. Two types of results are dealt here: object and array
DB_Result::result | ( | $ | type = 'object' |
) |
Query result. Acts as a wrapper function for the following functions.
public
string | can be "object" or "array" |
DB_Result::result_object | ( | ) |
Query result. "object" version.
public
DB_Result::result_array | ( | ) |
Query result. "array" version.
public
DB_Result::row | ( | $ | n = 0 , |
|
$ | type = 'object' | |||
) |
Query result. Acts as a wrapper function for the following functions.
public
string | ||
string | can be "object" or "array" |
DB_Result::set_row | ( | $ | key, | |
$ | value = NULL | |||
) |
Assigns an item into a particular column slot
public
DB_Result::row_object | ( | $ | n = 0 |
) |
Returns a single result row - object version
public
DB_Result::row_array | ( | $ | n = 0 |
) |
Returns a single result row - array version
public
DB_Result::first_row | ( | $ | type = 'object' |
) |
Returns the "first" row
public
DB_Result::last_row | ( | $ | type = 'object' |
) |
Returns the "last" row
public
DB_Result::next_row | ( | $ | type = 'object' |
) |
Returns the "next" row
public
DB_Result::previous_row | ( | $ | type = 'object' |
) |
Returns the "previous" row
public
DB_Result::list_fields | ( | ) |
Fetch Field Names
Generates an array of column names
public
DB_Result::free_result | ( | ) |
Free the result
DB_Result::reset_result | ( | $ | r_id | ) |
Reset current DB_Result object
DB_Result::_data_seek | ( | $ | n = 0 |
) |
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
private