MediaWiki  REL1_22
FakeResultWrapper Class Reference

Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database. More...

Inheritance diagram for FakeResultWrapper:
Collaboration diagram for FakeResultWrapper:

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database.

Definition at line 221 of file DatabaseUtility.php.


Constructor & Destructor Documentation

Definition at line 227 of file DatabaseUtility.php.

References result.


Member Function Documentation

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.

Returns:
object
Exceptions:
DBUnexpectedErrorThrown if the database returns an error

Reimplemented from ResultWrapper.

Definition at line 260 of file DatabaseUtility.php.

References fetchRow().

Referenced by next().

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

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

Returns:
Array
Exceptions:
DBUnexpectedErrorThrown if the database returns an error

Reimplemented from ResultWrapper.

Definition at line 238 of file DatabaseUtility.php.

References result.

Referenced by fetchObject().

Free a result object.

Reimplemented from ResultWrapper.

Definition at line 256 of file DatabaseUtility.php.

Returns:
int

Reimplemented from ResultWrapper.

Definition at line 274 of file DatabaseUtility.php.

References fetchObject().

Returns:
int

Reimplemented from ResultWrapper.

Definition at line 234 of file DatabaseUtility.php.

References result.

Reimplemented from ResultWrapper.

Definition at line 269 of file DatabaseUtility.php.

Change the position of the cursor in a result object.

See mysql_data_seek()

Parameters:
$rowinteger

Reimplemented from ResultWrapper.

Definition at line 252 of file DatabaseUtility.php.


Member Data Documentation

FakeResultWrapper::$currentRow = null

Reimplemented from ResultWrapper.

Definition at line 225 of file DatabaseUtility.php.

FakeResultWrapper::$db = null

Reimplemented from ResultWrapper.

Definition at line 223 of file DatabaseUtility.php.

FakeResultWrapper::$pos = 0

Reimplemented from ResultWrapper.

Definition at line 224 of file DatabaseUtility.php.

FakeResultWrapper::$result = array()

Reimplemented from ResultWrapper.

Definition at line 222 of file DatabaseUtility.php.


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