MediaWiki
REL1_23
|
Result wrapper for grabbing data queried by someone else. More...
Public Member Functions | |
__construct ($database, $result) | |
Create a new result object from a result resource and a Database object. | |
current () | |
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. | |
key () | |
next () | |
numRows () | |
Get the number of rows in a result object. | |
rewind () | |
seek ($row) | |
Change the position of the cursor in a result object. | |
valid () | |
Public Attributes | |
resource | $result |
* | |
Protected Attributes | |
$currentRow = null | |
DatabaseBase | $db |
* | |
int | $pos = 0 |
* |
Result wrapper for grabbing data queried by someone else.
Definition at line 99 of file DatabaseUtility.php.
ResultWrapper::__construct | ( | $ | database, |
$ | result | ||
) |
Create a new result object from a result resource and a Database object.
DatabaseBase | $database | |
resource | ResultWrapper | $result |
Definition at line 115 of file DatabaseUtility.php.
Definition at line 193 of file DatabaseUtility.php.
References next().
Referenced by valid().
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 in MssqlResultWrapper, and FakeResultWrapper.
Definition at line 142 of file DatabaseUtility.php.
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 in MssqlResultWrapper, and FakeResultWrapper.
Definition at line 153 of file DatabaseUtility.php.
Free a result object.
Reimplemented in FakeResultWrapper.
Definition at line 160 of file DatabaseUtility.php.
References result.
Definition at line 204 of file DatabaseUtility.php.
Reimplemented in FakeResultWrapper.
Definition at line 211 of file DatabaseUtility.php.
References fetchObject().
Referenced by current().
Get the number of rows in a result object.
Reimplemented in FakeResultWrapper.
Definition at line 130 of file DatabaseUtility.php.
Referenced by rewind().
Reimplemented in FakeResultWrapper.
Definition at line 182 of file DatabaseUtility.php.
References numRows().
ResultWrapper::seek | ( | $ | row | ) |
Change the position of the cursor in a result object.
See mysql_data_seek()
int | $row |
Reimplemented in MssqlResultWrapper, and FakeResultWrapper.
Definition at line 172 of file DatabaseUtility.php.
ResultWrapper::$currentRow = null [protected] |
Reimplemented in FakeResultWrapper.
Definition at line 107 of file DatabaseUtility.php.
DatabaseBase ResultWrapper::$db [protected] |
int ResultWrapper::$pos = 0 [protected] |
resource ResultWrapper::$result |
*
Reimplemented in FakeResultWrapper.
Definition at line 100 of file DatabaseUtility.php.
Referenced by MssqlResultWrapper\fetchObject(), and MssqlResultWrapper\fetchRow().