MediaWiki
REL1_23
|
Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database. More...
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 |
* |
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.
FakeResultWrapper::__construct | ( | $ | array | ) |
Definition at line 239 of file DatabaseUtility.php.
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.
DBUnexpectedError | Thrown 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'].
DBUnexpectedError | Thrown 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.
Reimplemented from ResultWrapper.
Definition at line 246 of file DatabaseUtility.php.
References result.
Reimplemented from ResultWrapper.
Definition at line 281 of file DatabaseUtility.php.
FakeResultWrapper::seek | ( | $ | row | ) |
Change the position of the cursor in a result object.
See mysql_data_seek()
int | $row |
Reimplemented from ResultWrapper.
Definition at line 264 of file DatabaseUtility.php.
array stdClass bool FakeResultWrapper::$currentRow = null [protected] |
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] |