MediaWiki
REL1_22
|
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 | |
$currentRow = null | |
$db = null | |
$pos = 0 | |
$result = array() |
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.
FakeResultWrapper::__construct | ( | $ | array | ) |
Definition at line 227 of file DatabaseUtility.php.
References result.
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 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'].
DBUnexpectedError | Thrown 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.
Reimplemented from ResultWrapper.
Definition at line 274 of file DatabaseUtility.php.
References fetchObject().
Reimplemented from ResultWrapper.
Definition at line 234 of file DatabaseUtility.php.
References result.
Reimplemented from ResultWrapper.
Definition at line 269 of file DatabaseUtility.php.
FakeResultWrapper::seek | ( | $ | row | ) |
Change the position of the cursor in a result object.
See mysql_data_seek()
$row | integer |
Reimplemented from ResultWrapper.
Definition at line 252 of file DatabaseUtility.php.
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.
Reimplemented from ResultWrapper.
Definition at line 222 of file DatabaseUtility.php.