KjwPgResultSet Class Reference
[Database (SQL) handling]

KjwPgResultSet is an implementation for postgresql of the KjwResultSet abstract class. More...

Inheritance diagram for KjwPgResultSet:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 KjwPgResultSet (&$resource)
 Construct a KjwPgResultSet.
 destroy ()
 Destructor performing cleanup.
 getNext ()
 Fetch the current result row and advance pointer to the next.
 at ()
 Returns at which row the resultset is.
 size ()
 Returns the number of results in the result set as an integer.
 seekAbs ($offset)
 Seek in the resultset to an absolute position.

Public Attributes

 $_resource
 The postgresql result set resource.
 $_pointer
 A pointer to keep track of the current position.
 $_end
 The size of the result set.


Detailed Description

KjwPgResultSet is an implementation for postgresql of the KjwResultSet abstract class.

Definition at line 28 of file KjwPgResultSet.php.


Member Function Documentation

KjwPgResultSet::at (  ) 

Returns at which row the resultset is.

Returns:
The current zero-based position.

Reimplemented from KjwResultSet.

Definition at line 61 of file KjwPgResultSet.php.

KjwPgResultSet::destroy (  ) 

Destructor performing cleanup.

Don't rely on this being called ever. The user must call it by hand.

Reimplemented from KjwResultSet.

Definition at line 46 of file KjwPgResultSet.php.

KjwPgResultSet::getNext (  ) 

Fetch the current result row and advance pointer to the next.

Returns:
An associative array or false if beyond the last element.

Reimplemented from KjwResultSet.

Definition at line 52 of file KjwPgResultSet.php.

References size().

KjwPgResultSet::KjwPgResultSet ( &$  resource  ) 

Construct a KjwPgResultSet.

Parameters:
$resource A postgresql result set resource.

Definition at line 38 of file KjwPgResultSet.php.

References KjwResultSet::KjwResultSet().

KjwPgResultSet::seekAbs ( offset  ) 

Seek in the resultset to an absolute position.

Parameters:
$offset The zero-based offset.
Returns:
A boolean specifying success.

Reimplemented from KjwResultSet.

Definition at line 71 of file KjwPgResultSet.php.

KjwPgResultSet::size (  ) 

Returns the number of results in the result set as an integer.

Returns:
The number of results in this resultset.

Reimplemented from KjwResultSet.

Definition at line 66 of file KjwPgResultSet.php.

Referenced by getNext().


Member Data Documentation

KjwPgResultSet::$_end

The size of the result set.

Definition at line 31 of file KjwPgResultSet.php.

KjwPgResultSet::$_pointer

A pointer to keep track of the current position.

Definition at line 30 of file KjwPgResultSet.php.

KjwPgResultSet::$_resource

The postgresql result set resource.

Definition at line 29 of file KjwPgResultSet.php.


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

Generated on Wed Apr 8 22:16:36 2009 for KjwLib-php45 by  doxygen 1.5.8