MediaWiki
REL1_24
|
This special page lists all defined user groups and the associated rights. More...
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 () |
This special page lists all defined user groups and the associated rights.
See also $wgGroupPermissions.
Definition at line 31 of file SpecialListgrouprights.php.
Definition at line 32 of file SpecialListgrouprights.php.
SpecialListGroupRights::execute | ( | $ | par | ) |
Show the special page.
string | null | $par |
Reimplemented from SpecialPage.
Definition at line 40 of file SpecialListgrouprights.php.
References $out, array(), as, Xml\closeElement(), Xml\element(), Sanitizer\escapeId(), formatPermissions(), MWNamespace\getCanonicalName(), SpecialPage\getConfig(), SpecialPage\getOutput(), SpecialPage\getTitleFor(), Linker\link(), Linker\linkKnown(), SpecialPage\msg(), Title\newFromText(), Xml\openElement(), SpecialPage\outputHeader(), outputNamespaceProtectionInfo(), 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 | Array of permission => bool (from $wgGroupPermissions items) |
array | $revoke | Array of permission => bool (from $wgRevokePermissions items) |
array | $add | Array of groups this group is allowed to add or true |
array | $remove | Array of groups this group is allowed to remove or true |
array | $addSelf | Array of groups this group is allowed to add to self or true |
array | $removeSelf | Array of group this group is allowed to remove from self or true |
Definition at line 233 of file SpecialListgrouprights.php.
References array(), as, empty, User\getAllGroups(), 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 315 of file SpecialListgrouprights.php.
SpecialListGroupRights::outputNamespaceProtectionInfo | ( | ) | [private] |
Definition at line 140 of file SpecialListgrouprights.php.
References $out, $right, $wgContLang, $wgParser, array(), as, Xml\closeElement(), Html\element(), SpecialPage\getConfig(), SpecialPage\getOutput(), User\getRightDescription(), SpecialPage\getTitleFor(), MWNamespace\getValidNamespaces(), global, Linker\link(), SpecialPage\msg(), Xml\openElement(), and Html\rawElement().
Referenced by execute().