MediaWiki  REL1_24
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 ()
 execute ($par)
 Show the special page.

Protected Member Functions

 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Private Member Functions

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

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


Member Function Documentation

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

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

Parameters:
array$permissionsArray of permission => bool (from $wgGroupPermissions items)
array$revokeArray of permission => bool (from $wgRevokePermissions items)
array$addArray of groups this group is allowed to add or true
array$removeArray of groups this group is allowed to remove or true
array$addSelfArray of groups this group is allowed to add to self or true
array$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 233 of file SpecialListgrouprights.php.

References array(), as, empty, User\getAllGroups(), SpecialPage\getLanguage(), User\getRightDescription(), and SpecialPage\msg().

Referenced by execute().

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 315 of file SpecialListgrouprights.php.


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