KjwMyResultSet Class Reference
[Database (SQL) handling]

KjwMyResultSet is an implementation for mysql of the KjwResultSet abstract class. More...

Inheritance diagram for KjwMyResultSet:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 KjwMyResultSet (&$resource)
 Construct a KjwMyResultSet.
 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 MySQL result set resource.
 $_pointer
 A pointer to keep track of the current position.
 $_end
 The size of the result set.


Detailed Description

KjwMyResultSet is an implementation for mysql of the KjwResultSet abstract class.

Definition at line 28 of file KjwMyResultSet.php.


Member Function Documentation

KjwMyResultSet::at (  ) 

Returns at which row the resultset is.

Returns:
The current zero-based position.

Reimplemented from KjwResultSet.

Definition at line 61 of file KjwMyResultSet.php.

KjwMyResultSet::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 KjwMyResultSet.php.

KjwMyResultSet::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 KjwMyResultSet.php.

References size().

KjwMyResultSet::KjwMyResultSet ( &$  resource  ) 

Construct a KjwMyResultSet.

Parameters:
$resource A mysql result set resource.

Definition at line 38 of file KjwMyResultSet.php.

References KjwResultSet::KjwResultSet().

KjwMyResultSet::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 KjwMyResultSet.php.

KjwMyResultSet::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 KjwMyResultSet.php.

Referenced by getNext().


Member Data Documentation

KjwMyResultSet::$_end

The size of the result set.

Definition at line 31 of file KjwMyResultSet.php.

KjwMyResultSet::$_pointer

A pointer to keep track of the current position.

Definition at line 30 of file KjwMyResultSet.php.

KjwMyResultSet::$_resource

The MySQL result set resource.

Definition at line 29 of file KjwMyResultSet.php.


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

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