Definition at line 30 of file GroupPermissionsLookup.php.
◆ __construct()
MediaWiki\Permissions\GroupPermissionsLookup::__construct |
( |
ServiceOptions |
$options | ) |
|
◆ getGroupPermissions()
MediaWiki\Permissions\GroupPermissionsLookup::getGroupPermissions |
( |
array |
$groups | ) |
|
Get the permissions associated with a given list of groups.
- Parameters
-
string[] | $groups | internal group names |
- Returns
- string[] permission key names for given groups combined
Definition at line 81 of file GroupPermissionsLookup.php.
◆ getGroupsWithPermission()
MediaWiki\Permissions\GroupPermissionsLookup::getGroupsWithPermission |
( |
string |
$permission | ) |
|
Get all the groups who have a given permission.
- Parameters
-
- Returns
- string[] internal group names with the given permission
Definition at line 112 of file GroupPermissionsLookup.php.
◆ groupHasPermission()
MediaWiki\Permissions\GroupPermissionsLookup::groupHasPermission |
( |
string |
$group, |
|
|
string |
$permission |
|
) |
| |
Check, if the given group has the given permission.
If you're wanting to check whether all users have a permission, use PermissionManager::isEveryoneAllowed() instead. That properly checks if it's revoked from anyone.
- Parameters
-
string | $group | Group to check |
string | $permission | Role to check |
- Returns
- bool
Definition at line 68 of file GroupPermissionsLookup.php.
◆ $groupPermissions
array MediaWiki\Permissions\GroupPermissionsLookup::$groupPermissions |
|
private |
Initial value:=[,,]
public const CONSTRUCTOR_OPTIONS
'GroupPermissions'
'RevokePermissions'
Definition at line 42 of file GroupPermissionsLookup.php.
◆ $revokePermissions
array MediaWiki\Permissions\GroupPermissionsLookup::$revokePermissions |
|
private |
The documentation for this class was generated from the following file: