MediaWiki  REL1_23
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

array $result = array()
 *

Protected Attributes

array stdClass bool $currentRow = null
 *
null $db = null
 And it's going to stay that way :D *.
int $pos = 0
 *

Detailed Description

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

Definition at line 230 of file DatabaseUtility.php.


Constructor & Destructor Documentation

Definition at line 239 of file DatabaseUtility.php.


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 272 of file DatabaseUtility.php.

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 250 of file DatabaseUtility.php.

References result.

Free a result object.

Reimplemented from ResultWrapper.

Definition at line 268 of file DatabaseUtility.php.

Returns:
int

Reimplemented from ResultWrapper.

Definition at line 286 of file DatabaseUtility.php.

Returns:
int

Reimplemented from ResultWrapper.

Definition at line 246 of file DatabaseUtility.php.

References result.

Reimplemented from ResultWrapper.

Definition at line 281 of file DatabaseUtility.php.

Change the position of the cursor in a result object.

See mysql_data_seek()

Parameters:
int$row

Reimplemented from ResultWrapper.

Definition at line 264 of file DatabaseUtility.php.


Member Data Documentation

array stdClass bool FakeResultWrapper::$currentRow = null [protected]

*

Reimplemented from ResultWrapper.

Definition at line 237 of file DatabaseUtility.php.

null FakeResultWrapper::$db = null [protected]

And it's going to stay that way :D *.

Reimplemented from ResultWrapper.

Definition at line 233 of file DatabaseUtility.php.

int FakeResultWrapper::$pos = 0 [protected]

*

Reimplemented from ResultWrapper.

Definition at line 235 of file DatabaseUtility.php.

array FakeResultWrapper::$result = array()

*

Reimplemented from ResultWrapper.

Definition at line 231 of file DatabaseUtility.php.


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