MediaWiki  REL1_19
SpecialListGroupRights Class Reference

This special page lists all defined user groups and the associated rights. More...

Inheritance diagram for SpecialListGroupRights:
Collaboration diagram for SpecialListGroupRights:

List of all members.

Public Member Functions

 __construct ()
 Constructor.
 execute ($par)
 Show the special page.

Private Member Functions

 formatPermissions ($permissions, $revoke, $add, $remove, $addSelf, $removeSelf)
 Create a user-readable list of permissions from the given array.

Detailed Description

This special page lists all defined user groups and the associated rights.

See also $wgGroupPermissions.

Author:
Petr Kadlec <[email protected]>

Definition at line 31 of file SpecialListgrouprights.php.


Constructor & Destructor Documentation

Constructor.

Definition at line 36 of file SpecialListgrouprights.php.


Member Function Documentation

SpecialListGroupRights::formatPermissions ( permissions,
revoke,
add,
remove,
addSelf,
removeSelf 
) [private]

Create a user-readable list of permissions from the given array.

Parameters:
$permissionsArray of permission => bool (from $wgGroupPermissions items)
$revokeArray of permission => bool (from $wgRevokePermissions items)
$addArray of groups this group is allowed to add or true
$removeArray of groups this group is allowed to remove or true
$addSelfArray of groups this group is allowed to add to self or true
$removeSelfArray of group this group is allowed to remove from self or true
Returns:
string List of all granted permissions, separated by comma separator

Definition at line 150 of file SpecialListgrouprights.php.

References SpecialPage\getLanguage(), User\getRightDescription(), and wfMsgExt().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


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