Inherits AlphabeticPager.
Public Member Functions | |
__construct ($par=null) | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
formatRow ($row) | |
Abstract formatting function. | |
getBody () | |
Get the formatted result list. | |
getPageHeader () | |
getAllGroups () | |
Get a list of all explicit groups. | |
getDefaultQuery () | |
Preserve group and username offset parameters when paging. | |
Static Protected Member Functions | |
static | getGroups ($uid) |
Get a list of groups the specified user belongs to. | |
static | buildGroupLink ($group) |
Format a link to a group description page. |
The ones with specials rights (sysop, bureaucrat, developer) will have them displayed next to their names.
Definition at line 36 of file SpecialListusers.php.
UsersPager::__construct | ( | $ | par = null |
) |
Definition at line 38 of file SpecialListusers.php.
References $username, $wgRequest, IndexPager::__construct(), User::getAllGroups(), and Title::makeTitleSafe().
static UsersPager::buildGroupLink | ( | $ | group | ) | [static, protected] |
Format a link to a group description page.
string | $group |
Definition at line 251 of file SpecialListusers.php.
References User::getGroupMember().
Referenced by formatRow().
UsersPager::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 116 of file SpecialListusers.php.
References $name, $row, $t, $wgEdititis, $wgLang, buildGroupLink(), IndexPager::getSkin(), Title::makeTitle(), wfMsgExt(), wfMsgHtml(), wfRunHooks(), wfSpecialList(), and wfTimestamp().
UsersPager::getAllGroups | ( | ) |
Get a list of all explicit groups.
Definition at line 210 of file SpecialListusers.php.
References $result, User::getAllGroups(), and User::getGroupName().
Referenced by getPageHeader().
UsersPager::getBody | ( | ) |
Get the formatted result list.
Calls getStartBody(), formatRow() and getEndBody(), concatenates the results and returns them.
Reimplemented from IndexPager.
Definition at line 155 of file SpecialListusers.php.
References $batch, $row, IndexPager::doQuery(), and Title::makeTitleSafe().
UsersPager::getDefaultQuery | ( | ) |
Preserve group and username offset parameters when paging.
Reimplemented from IndexPager.
Definition at line 223 of file SpecialListusers.php.
References wfRunHooks().
static UsersPager::getGroups | ( | $ | uid | ) | [static, protected] |
Get a list of groups the specified user belongs to.
int | $uid |
Definition at line 239 of file SpecialListusers.php.
References $user, and User::newFromId().
UsersPager::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 69 of file SpecialListusers.php.
UsersPager::getPageHeader | ( | ) |
Definition at line 169 of file SpecialListusers.php.
References $out, $self, $wgRequest, $wgScript, Xml::checkLabel(), Xml::closeElement(), Xml::fieldset(), getAllGroups(), IndexPager::getTitle(), Xml::hidden(), Xml::input(), Xml::label(), Xml::openElement(), Xml::option(), Xml::submitButton(), wfMsg(), and wfRunHooks().
UsersPager::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 73 of file SpecialListusers.php.
References $conds, $dbr, $user, User::idFromName(), wfGetDB(), and wfRunHooks().