MediaWiki
REL1_19
|
This class is used to get a list of active users. More...
Public Member Functions | |
__construct (IContextSource $context=null, $group=null, $par=null) | |
formatRow ($row) | |
Abstract formatting function. | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
getPageHeader () | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
setupOptions () | |
Protected Attributes | |
$groups | |
$opts |
This class is used to get a list of active users.
The ones with specials rights (sysop, bureaucrat, developer) will have them displayed next to their names.
Definition at line 33 of file SpecialActiveusers.php.
ActiveUsersPager::__construct | ( | IContextSource $ | context = null , |
$ | group = null , |
||
$ | par = null |
||
) |
$context | IContextSource |
$group | null Unused |
$par | string Parameter passed to the page |
Definition at line 50 of file SpecialActiveusers.php.
References ContextSource\$context, $wgActiveUserDays, ContextSource\getRequest(), Title\makeTitleSafe(), and setupOptions().
ActiveUsersPager::formatRow | ( | $ | row | ) |
Abstract formatting function.
This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()
$row | Object: database row |
Reimplemented from UsersPager.
Definition at line 121 of file SpecialActiveusers.php.
References $count, $groups, UsersPager\buildGroupLink(), ContextSource\getLanguage(), ContextSource\msg(), Html\rawElement(), Linker\userLink(), and Linker\userToolLinks().
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 UsersPager.
Definition at line 85 of file SpecialActiveusers.php.
Reimplemented from UsersPager.
Definition at line 146 of file SpecialActiveusers.php.
References $limit, $out, $self, $wgScript, Xml\checkLabel(), Xml\closeElement(), Xml\fieldset(), ContextSource\getTitle(), Html\hidden(), Xml\inputLabel(), ContextSource\msg(), Xml\openElement(), and Xml\submitButton().
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 join_conds => JOIN conditions
Reimplemented from UsersPager.
Definition at line 89 of file SpecialActiveusers.php.
References $dbr, and wfGetDB().
Definition at line 68 of file SpecialActiveusers.php.
References FormOptions\BOOL, and ContextSource\getRequest().
Referenced by __construct().
ActiveUsersPager::$groups [protected] |
Definition at line 43 of file SpecialActiveusers.php.
Referenced by formatRow().
ActiveUsersPager::$opts [protected] |
Definition at line 38 of file SpecialActiveusers.php.