Public Member Functions | |
__construct ($imagePage) | |
getTitle () | |
Title used for self-links. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
formatRow ($row) | |
Abstract formatting function. | |
getBody () | |
Get the formatted result list. | |
doQuery () | |
Do the query, using information from the object context. |
Definition at line 915 of file ImagePage.php.
ImageHistoryPseudoPager::__construct | ( | $ | imagePage | ) |
ImageHistoryPseudoPager::doQuery | ( | ) |
Do the query, using information from the object context.
This function has been kept minimal to make it overridable if necessary, to allow for result sets formed from multiple DB queries.
Reimplemented from IndexPager.
Definition at line 960 of file ImagePage.php.
References $numRows.
Referenced by getBody().
ImageHistoryPseudoPager::formatRow | ( | $ | row | ) |
Abstract formatting function.
This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()
Reimplemented from IndexPager.
Definition at line 938 of file ImagePage.php.
ImageHistoryPseudoPager::getBody | ( | ) |
Get the formatted result list.
Calls getStartBody(), formatRow() and getEndBody(), concatenates the results and returns them.
Reimplemented from IndexPager.
Definition at line 942 of file ImagePage.php.
References $file, $i, $s, doQuery(), and ReverseChronologicalPager::getNavigationBar().
ImageHistoryPseudoPager::getIndexField | ( | ) |
This function should be overridden to return the name of the index fi- eld.
If the pager supports multiple orders, it may return an array of 'querykey' => 'indexfield' pairs, so that a request with &count=querykey will use indexfield to sort. In this case, the first returned key is the default.
Needless to say, it's really not a good idea to use a non-unique index for this! That won't page right.
Reimplemented from IndexPager.
Definition at line 934 of file ImagePage.php.
ImageHistoryPseudoPager::getQueryInfo | ( | ) |
This function should be overridden to provide all parameters needed for the main paged query.
It returns an associative array with the following elements: tables => Table(s) for passing to Database::select() fields => Field(s) for passing to Database::select(), may be * conds => WHERE conditions options => option array
Reimplemented from IndexPager.
Definition at line 930 of file ImagePage.php.
ImageHistoryPseudoPager::getTitle | ( | ) |
Title used for self-links.
Override this if you want to be able to use a title other than $wgTitle
Reimplemented from IndexPager.
Definition at line 926 of file ImagePage.php.