KjwMsResultSet Class Reference
[Database (SQL) handling]

KjwMsResultSet is an implementation for mssql of the KjwResultSet abstract class. More...

Inheritance diagram for KjwMsResultSet:

Inheritance graph
[legend]

List of all members.

Public Member Functions

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


Detailed Description

KjwMsResultSet is an implementation for mssql of the KjwResultSet abstract class.

Definition at line 30 of file KjwMsResultSet.php.


Member Function Documentation

KjwMsResultSet::at (  ) 

Returns at which row the resultset is.

Returns:
The current zero-based position.

Reimplemented from KjwResultSet.

Definition at line 63 of file KjwMsResultSet.php.

KjwMsResultSet::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 48 of file KjwMsResultSet.php.

KjwMsResultSet::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 54 of file KjwMsResultSet.php.

References size().

KjwMsResultSet::KjwMsResultSet ( &$  resource  ) 

Construct a KjwMsResultSet.

Parameters:
$resource An mssql result set resource.

Definition at line 40 of file KjwMsResultSet.php.

References KjwResultSet::KjwResultSet().

KjwMsResultSet::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 73 of file KjwMsResultSet.php.

KjwMsResultSet::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 68 of file KjwMsResultSet.php.

Referenced by getNext().


Member Data Documentation

KjwMsResultSet::$_end

The size of the result set.

Definition at line 33 of file KjwMsResultSet.php.

KjwMsResultSet::$_pointer

A pointer to keep track of the current position.

Definition at line 32 of file KjwMsResultSet.php.

KjwMsResultSet::$_resource

The MsSQL result set resource.

Definition at line 31 of file KjwMsResultSet.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