MediaWiki  REL1_24
UsersPager Class Reference

This class is used to get a list of user. More...

Inheritance diagram for UsersPager:
Collaboration diagram for UsersPager:

List of all members.

Public Member Functions

 __construct (IContextSource $context=null, $par=null, $including=null)
 doBatchLookups ()
 Called from getBody(), before getStartBody() is called and after doQuery() was called.
 formatRow ($row)
 getAllGroups ()
 Get a list of all explicit groups.
 getDefaultQuery ()
 Preserve group and username offset parameters when paging.
 getIndexField ()
 getPageHeader ()
 getQueryInfo ()

Static Protected Member Functions

static buildGroupLink ($group, $username)
 Format a link to a group description page.
static getGroups ($uid)
 Get a list of groups the specified user belongs to.

Detailed Description

This class is used to get a list of user.

The ones with specials rights (sysop, bureaucrat, developer) will have them displayed next to their names.

Definition at line 35 of file SpecialListusers.php.


Constructor & Destructor Documentation

UsersPager::__construct ( IContextSource context = null,
par = null,
including = null 
)
Parameters:
IContextSource$context
array$par(Default null)
bool$includingWhether this page is being transcluded in another page

Reimplemented in ActiveUsersPager.

Definition at line 43 of file SpecialListusers.php.

References ContextSource\$context, array(), IndexPager\DIR_ASCENDING, IndexPager\DIR_DESCENDING, User\getAllGroups(), ContextSource\getRequest(), Title\makeTitleSafe(), and ContextSource\setContext().


Member Function Documentation

static UsersPager::buildGroupLink ( group,
username 
) [static, protected]

Format a link to a group description page.

Parameters:
string$groupGroup name
string$usernameUsername
Returns:
string

Definition at line 350 of file SpecialListusers.php.

References User\getGroupMember().

Referenced by formatRow().

Called from getBody(), before getStartBody() is called and after doQuery() was called.

This will be called only if there are rows in the result set.

Returns:
void

Reimplemented from IndexPager.

Reimplemented in ActiveUsersPager.

Definition at line 219 of file SpecialListusers.php.

References $batch, and as.

Get a list of all explicit groups.

Returns:
array

Definition at line 303 of file SpecialListusers.php.

References $result, array(), as, User\getAllGroups(), and User\getGroupName().

Referenced by getPageHeader().

Preserve group and username offset parameters when paging.

Returns:
array

Reimplemented from IndexPager.

Definition at line 317 of file SpecialListusers.php.

References $query, array(), and wfRunHooks().

static UsersPager::getGroups ( uid) [static, protected]

Get a list of groups the specified user belongs to.

Parameters:
int$uidUser id
Returns:
array

Definition at line 336 of file SpecialListusers.php.

References $user, User\getImplicitGroups(), and User\newFromId().

Referenced by formatRow().

Returns:
string

Reimplemented from IndexPager.

Reimplemented in ActiveUsersPager.

Definition at line 92 of file SpecialListusers.php.

Returns:
array

Reimplemented from IndexPager.

Reimplemented in ActiveUsersPager.

Definition at line 99 of file SpecialListusers.php.

References $conds, $dbr, $options, $query, array(), ContextSource\getUser(), User\idFromName(), wfGetDB(), and wfRunHooks().


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