Public Member Functions | |
ResultWrapper ($database, $result) | |
Create a new result object from a result resource and a Database object. | |
numRows () | |
Get the number of rows in a result object. | |
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. | |
seek ($row) | |
Change the position of the cursor in a result object See mysql_data_seek(). | |
rewind () | |
current () | |
key () | |
next () | |
valid () | |
Public Attributes | |
$db | |
$result | |
$pos = 0 | |
$currentRow = null |
Definition at line 2744 of file Database.php.
ResultWrapper::current | ( | ) |
ResultWrapper::fetchObject | ( | ) |
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.
$res | SQL result object as returned from Database::query(), etc. |
DBUnexpectedError | Thrown if the database returns an error |
Definition at line 2775 of file Database.php.
Referenced by IndexPager::extractResultInfo(), Block::loadFromResult(), and next().
ResultWrapper::fetchRow | ( | ) |
Fetch the next row from the given result object, in associative array form.
Fields are retrieved with $row['fieldname'].
$res | SQL result object as returned from Database::query(), etc. |
DBUnexpectedError | Thrown if the database returns an error |
Definition at line 2787 of file Database.php.
Referenced by IndexPager::extractResultInfo().
ResultWrapper::free | ( | ) |
Free a result object.
Definition at line 2794 of file Database.php.
Referenced by Block::loadFromResult().
ResultWrapper::key | ( | ) |
Definition at line 2829 of file Database.php.
ResultWrapper::next | ( | ) |
ResultWrapper::numRows | ( | ) |
Get the number of rows in a result object.
Definition at line 2762 of file Database.php.
Referenced by IndexPager::extractResultInfo(), Block::loadFromResult(), and rewind().
ResultWrapper::ResultWrapper | ( | $ | database, | |
$ | result | |||
) |
Create a new result object from a result resource and a Database object.
Definition at line 2750 of file Database.php.
ResultWrapper::rewind | ( | ) |
ResultWrapper::seek | ( | $ | row | ) |
Change the position of the cursor in a result object See mysql_data_seek().
Definition at line 2804 of file Database.php.
References $row.
Referenced by IndexPager::extractResultInfo().
ResultWrapper::valid | ( | ) |
ResultWrapper::$currentRow = null |
Definition at line 2745 of file Database.php.
ResultWrapper::$db |
Definition at line 2745 of file Database.php.
ResultWrapper::$pos = 0 |
Definition at line 2745 of file Database.php.
ResultWrapper::$result |