MediaWiki  REL1_22
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.

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.

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 35 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:
array$permissionsof permission => bool (from $wgGroupPermissions items)
array$revokeof permission => bool (from $wgRevokePermissions items)
array$addof groups this group is allowed to add or true
array$removeof groups this group is allowed to remove or true
array$addSelfof groups this group is allowed to add to self or true
array$removeSelfof 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 148 of file SpecialListgrouprights.php.

References array(), as, empty, 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 221 of file SpecialListgrouprights.php.


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