MediaWiki  REL1_19
ActiveUsersPager Class Reference

This class is used to get a list of active users. More...

Inheritance diagram for ActiveUsersPager:
Collaboration diagram for ActiveUsersPager:

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

ActiveUsersPager::__construct ( IContextSource context = null,
group = null,
par = null 
)
Parameters:
$contextIContextSource
$groupnull Unused
$parstring Parameter passed to the page

Definition at line 50 of file SpecialActiveusers.php.

References ContextSource\$context, $wgActiveUserDays, ContextSource\getRequest(), Title\makeTitleSafe(), and setupOptions().

Here is the call graph for this function:


Member Function Documentation

Abstract formatting function.

This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()

Parameters:
$rowObject: database row
Returns:
String

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().

Here is the call graph for this function:

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.

Returns:
string|Array

Reimplemented from UsersPager.

Definition at line 85 of file SpecialActiveusers.php.

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

Returns:
Array

Reimplemented from UsersPager.

Definition at line 89 of file SpecialActiveusers.php.

References $dbr, and wfGetDB().

Here is the call graph for this function:

Definition at line 68 of file SpecialActiveusers.php.

References FormOptions\BOOL, and ContextSource\getRequest().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: