MediaWiki
REL1_22
|
This special page lists all defined user groups and the associated rights. More...
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. |
This special page lists all defined user groups and the associated rights.
See also $wgGroupPermissions.
Definition at line 31 of file SpecialListgrouprights.php.
Constructor.
Definition at line 35 of file SpecialListgrouprights.php.
SpecialListGroupRights::execute | ( | $ | par | ) |
Show the special page.
Reimplemented from SpecialPage.
Definition at line 42 of file SpecialListgrouprights.php.
References $out, array(), as, Xml\closeElement(), Xml\element(), Sanitizer\escapeId(), formatPermissions(), MWNamespace\getCanonicalName(), SpecialPage\getOutput(), SpecialPage\getTitleFor(), global, Linker\link(), Linker\linkKnown(), SpecialPage\msg(), Title\newFromText(), Xml\openElement(), SpecialPage\outputHeader(), Html\rawElement(), SpecialPage\setHeaders(), and text.
SpecialListGroupRights::formatPermissions | ( | $ | permissions, |
$ | revoke, | ||
$ | add, | ||
$ | remove, | ||
$ | addSelf, | ||
$ | removeSelf | ||
) | [private] |
Create a user-readable list of permissions from the given array.
array | $permissions | of permission => bool (from $wgGroupPermissions items) |
array | $revoke | of permission => bool (from $wgRevokePermissions items) |
array | $add | of groups this group is allowed to add or true |
array | $remove | of groups this group is allowed to remove or true |
array | $addSelf | of groups this group is allowed to add to self or true |
array | $removeSelf | of group this group is allowed to remove from self or true |
Definition at line 148 of file SpecialListgrouprights.php.
References array(), as, empty, SpecialPage\getLanguage(), User\getRightDescription(), and SpecialPage\msg().
Referenced by execute().
SpecialListGroupRights::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 221 of file SpecialListgrouprights.php.