|
MediaWiki
master
|
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 () | |
| Callers want to be able to access fields with $this->fieldName. More... | |
| fetchRow () | |
| free () | |
| next () | |
| numRows () | |
| rewind () | |
| seek ($row) | |
Public Member Functions inherited from ResultWrapper | |
| __construct ($database, $result) | |
| Create a new result object from a result resource and a Database object. More... | |
| current () | |
| fetchObject () | |
| Fetch the next row from the given result object, in object form. More... | |
| fetchRow () | |
| Fetch the next row from the given result object, in associative array form. More... | |
| free () | |
| Free a result object. More... | |
| key () | |
| next () | |
| numRows () | |
| Get the number of rows in a result object. More... | |
| rewind () | |
| seek ($row) | |
| Change the position of the cursor in a result object. More... | |
| valid () | |
Public Attributes | |
| array | $result = [] |
Public Attributes inherited from ResultWrapper | |
| resource | $result |
Protected Attributes | |
| array stdClass bool | $currentRow = null |
| null | $db = null |
| And it's going to stay that way :D. More... | |
| int | $pos = 0 |
Protected Attributes inherited from ResultWrapper | |
| object null | $currentRow = null |
| DatabaseBase | $db |
| int | $pos = 0 |
Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database.
Definition at line 211 of file DatabaseUtility.php.
| FakeResultWrapper::__construct | ( | $array | ) |
| FakeResultWrapper::fetchObject | ( | ) |
Callers want to be able to access fields with $this->fieldName.
Definition at line 266 of file DatabaseUtility.php.
References $currentRow, and fetchRow().
Referenced by next().
| FakeResultWrapper::fetchRow | ( | ) |
Definition at line 241 of file DatabaseUtility.php.
References $currentRow, $pos, and result.
Referenced by fetchObject().
| FakeResultWrapper::free | ( | ) |
Definition at line 259 of file DatabaseUtility.php.
| FakeResultWrapper::next | ( | ) |
| FakeResultWrapper::numRows | ( | ) |
| FakeResultWrapper::rewind | ( | ) |
Definition at line 275 of file DatabaseUtility.php.
| FakeResultWrapper::seek | ( | $row | ) |
Definition at line 255 of file DatabaseUtility.php.
|
protected |
Definition at line 222 of file DatabaseUtility.php.
Referenced by fetchObject(), and fetchRow().
|
protected |
And it's going to stay that way :D.
Definition at line 216 of file DatabaseUtility.php.
|
protected |
Definition at line 219 of file DatabaseUtility.php.
Referenced by fetchRow().
| array FakeResultWrapper::$result = [] |
Definition at line 213 of file DatabaseUtility.php.