Inherits AlphabeticPager.
Public Member Functions | |
__construct ($from) | |
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. | |
getDefaultQuery () | |
Get an array of query parameters that should be put into self-links. | |
getBody () | |
Get the formatted result list. | |
formatRow ($result) | |
Abstract formatting function. | |
getStartForm ($from) | |
Protected Member Functions | |
getDefaultDirections () | |
Return the default sorting direction: false for ascending, true for de- scending. |
We need to have a unique index to do this properly.
Definition at line 33 of file SpecialCategories.php.
CategoryPager::__construct | ( | $ | from | ) |
Definition at line 34 of file SpecialCategories.php.
References $wgCapitalLinks, $wgContLang, and IndexPager::__construct().
CategoryPager::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 92 of file SpecialCategories.php.
References $count, $result, $title, $wgLang, IndexPager::getSkin(), Title::makeTitle(), Xml::tags(), and wfMsgExt().
CategoryPager::getBody | ( | ) |
Get the formatted result list.
Calls getStartBody(), formatRow() and getEndBody(), concatenates the results and returns them.
Reimplemented from IndexPager.
Definition at line 76 of file SpecialCategories.php.
References $batch, $row, IndexPager::doQuery(), and Title::makeTitleSafe().
CategoryPager::getDefaultDirections | ( | ) | [protected] |
Return the default sorting direction: false for ascending, true for de- scending.
You can also have an associative array of ordertype => dir, if multiple order types are supported. In this case getIndexField() must return an array, and the keys of that must exactly match the keys of this.
For backward compatibility, this method's return value will be ignored if $this->mDefaultDirection is already set when the constructor is called, for instance if it's statically initialized. In that case the value of that variable (which must be a boolean) will be used.
Note that despite its name, this does not return the value of the $this->mDefaultDirection member variable. That's the default for this particular instantiation, which is a single value. This is the set of all defaults for the class.
Reimplemented from IndexPager.
Definition at line 70 of file SpecialCategories.php.
CategoryPager::getDefaultQuery | ( | ) |
Get an array of query parameters that should be put into self-links.
By default, all parameters passed in the URL are used, except for a short blacklist.
Reimplemented from IndexPager.
Definition at line 60 of file SpecialCategories.php.
CategoryPager::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 55 of file SpecialCategories.php.
CategoryPager::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 46 of file SpecialCategories.php.
CategoryPager::getStartForm | ( | $ | from | ) |
Definition at line 101 of file SpecialCategories.php.
References $t, $wgScript, Xml::fieldset(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::inputLabel(), Xml::submitButton(), Xml::tags(), and wfMsg().