DB_Result Class Reference

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')
 list_fields ()
 free_result ()
 reset_result ($r_id)
 _data_seek ($n=0)

Detailed Description

Database Result Class

This is a wrapper of normal result operations for PostgreSQL. Two types of results are dealt here: object and array


Member Function Documentation

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
DB_Result::result_object (  ) 

Query result. "object" version.

public

Returns:
object
DB_Result::result_array (  ) 

Query result. "array" version.

public

Returns:
array
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
DB_Result::set_row ( key,
value = NULL 
)

Assigns an item into a particular column slot

public

Returns:
object
DB_Result::row_object ( n = 0  ) 

Returns a single result row - object version

public

Returns:
object
DB_Result::row_array ( n = 0  ) 

Returns a single result row - array version

public

Returns:
array
DB_Result::first_row ( type = 'object'  ) 

Returns the "first" row

public

Returns:
object
DB_Result::last_row ( type = 'object'  ) 

Returns the "last" row

public

Returns:
object
DB_Result::next_row ( type = 'object'  ) 

Returns the "next" row

public

Returns:
object
DB_Result::previous_row ( type = 'object'  ) 

Returns the "previous" row

public

Returns:
object
DB_Result::list_fields (  ) 

Fetch Field Names

Generates an array of column names

public

Returns:
array
DB_Result::free_result (  ) 

Free the result

Returns:
void
DB_Result::reset_result ( r_id  ) 

Reset current DB_Result object

Returns:
void
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

Returns:
array

The documentation for this class was generated from the following file:
 All Classes Files Functions
Generated on Fri May 27 09:42:03 2011 for Data Centre by  doxygen 1.6.3