MediaWiki  REL1_24
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 ()
 Callers want to be able to access fields with $this->fieldName.
 fetchRow ()
 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 229 of file DatabaseUtility.php.


Constructor & Destructor Documentation

Definition at line 238 of file DatabaseUtility.php.


Member Function Documentation

Callers want to be able to access fields with $this->fieldName.

Returns:
bool|stdClass

Reimplemented from ResultWrapper.

Definition at line 277 of file DatabaseUtility.php.

Returns:
array|bool

Reimplemented from ResultWrapper.

Definition at line 252 of file DatabaseUtility.php.

Referenced by rewind().

Free a result object.

Reimplemented from ResultWrapper.

Definition at line 270 of file DatabaseUtility.php.

Returns:
bool|stdClass

Reimplemented from ResultWrapper.

Definition at line 294 of file DatabaseUtility.php.

Returns:
int

Reimplemented from ResultWrapper.

Definition at line 245 of file DatabaseUtility.php.

References result.

Reimplemented from ResultWrapper.

Definition at line 286 of file DatabaseUtility.php.

References fetchRow().

Change the position of the cursor in a result object.

See mysql_data_seek()

Parameters:
int$row

Reimplemented from ResultWrapper.

Definition at line 266 of file DatabaseUtility.php.


Member Data Documentation

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

*

Reimplemented from ResultWrapper.

Definition at line 236 of file DatabaseUtility.php.

null FakeResultWrapper::$db = null [protected]

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

Reimplemented from ResultWrapper.

Definition at line 232 of file DatabaseUtility.php.

int FakeResultWrapper::$pos = 0 [protected]

*

Reimplemented from ResultWrapper.

Definition at line 234 of file DatabaseUtility.php.

array FakeResultWrapper::$result = array()

*

Reimplemented from ResultWrapper.

Definition at line 230 of file DatabaseUtility.php.


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