FakeResultWrapper Class Reference

Inherits ResultWrapper.

List of all members.

Public Member Functions

 __construct ($array)
 numRows ()
 Get the number of rows in a result object.
 fetchRow ()
 Fetch the next row from the given result object, in associative array form.
 seek ($row)
 Change the position of the cursor in a result object See mysql_data_seek().
 free ()
 Free a result object.
 fetchObject ()
 Fetch the next row from the given result object, in object form.
 rewind ()

Public Attributes

 $result = array()
 $db = null
 $pos = 0
 $currentRow = null


Detailed Description

Definition at line 381 of file SpecialAllmessages.php.


Constructor & Destructor Documentation

FakeResultWrapper::__construct ( array  ) 

Definition at line 388 of file SpecialAllmessages.php.


Member Function Documentation

FakeResultWrapper::fetchObject (  ) 

Fetch the next row from the given result object, in object form.

Fields can be retrieved with $row->fieldname, with fields acting like member variables.

Parameters:
$res SQL result object as returned from Database::query(), etc.
Returns:
MySQL row object
Exceptions:
DBUnexpectedError Thrown if the database returns an error

Reimplemented from ResultWrapper.

Definition at line 408 of file SpecialAllmessages.php.

FakeResultWrapper::fetchRow (  ) 

Fetch the next row from the given result object, in associative array form.

Fields are retrieved with $row['fieldname'].

Parameters:
$res SQL result object as returned from Database::query(), etc.
Returns:
MySQL row object
Exceptions:
DBUnexpectedError Thrown if the database returns an error

Reimplemented from ResultWrapper.

Definition at line 396 of file SpecialAllmessages.php.

FakeResultWrapper::free (  ) 

Free a result object.

Reimplemented from ResultWrapper.

Definition at line 405 of file SpecialAllmessages.php.

FakeResultWrapper::numRows (  ) 

Get the number of rows in a result object.

Reimplemented from ResultWrapper.

Definition at line 392 of file SpecialAllmessages.php.

FakeResultWrapper::rewind (  ) 

Reimplemented from ResultWrapper.

Definition at line 413 of file SpecialAllmessages.php.

FakeResultWrapper::seek ( row  ) 

Change the position of the cursor in a result object See mysql_data_seek().

Reimplemented from ResultWrapper.

Definition at line 401 of file SpecialAllmessages.php.


Member Data Documentation

FakeResultWrapper::$currentRow = null

Reimplemented from ResultWrapper.

Definition at line 386 of file SpecialAllmessages.php.

FakeResultWrapper::$db = null

Reimplemented from ResultWrapper.

Definition at line 384 of file SpecialAllmessages.php.

FakeResultWrapper::$pos = 0

Reimplemented from ResultWrapper.

Definition at line 385 of file SpecialAllmessages.php.

FakeResultWrapper::$result = array()

Reimplemented from ResultWrapper.

Definition at line 383 of file SpecialAllmessages.php.


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

Generated on Sat Apr 30 22:57:37 2011 for MediaWiki by  doxygen 1.5.9