SpecialListGroupRights Class Reference
[SpecialPage]

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

Inherits SpecialPage.

List of all members.

Public Member Functions

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

Public Attributes

 $skin

Static Private Member Functions

static 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 <mormegil@centrum.cz>

Definition at line 10 of file SpecialListgrouprights.php.


Constructor & Destructor Documentation

SpecialListGroupRights::__construct (  ) 

Constructor.

Definition at line 17 of file SpecialListgrouprights.php.

References $wgUser.


Member Function Documentation

SpecialListGroupRights::execute ( par  ) 

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

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

Parameters:
$permissions Array of permission => bool (from $wgGroupPermissions items)
$revoke Array of permission => bool (from $wgRevokePermissions items)
$add Array of groups this group is allowed to add or true
$remove Array of groups this group is allowed to remove or true
$addSelf Array of groups this group is allowed to add to self or true
$removeSelf Array 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 126 of file SpecialListgrouprights.php.

References $wgLang, User::getRightDescription(), and wfMsgExt().


Member Data Documentation

SpecialListGroupRights::$skin

Definition at line 12 of file SpecialListgrouprights.php.


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

Generated on Sat Apr 30 22:57:49 2011 for MediaWiki by  doxygen 1.5.9