|
MediaWiki master
|
A helper class to read the restricted user groups configuration for a given wiki. More...
Public Member Functions | |
| __construct (private readonly ServiceOptions $options, private readonly UserRequirementsConditionValidator $userRequirementsConditionValidator,) | |
| getConfig (false|string $wiki=false, string $scope=self::SCOPE_LOCAL) | |
| Reads the restricted group configuration for the specified wiki, either from the ServiceOptions provided to the constructor (if the wiki is the local wiki) or from the global $wgConf variable (otherwise). | |
Public Attributes | |
| const | CONSTRUCTOR_OPTIONS |
| const | SCOPE_LOCAL = 'local' |
| Scope value representing user groups as supported by MediaWiki core. | |
A helper class to read the restricted user groups configuration for a given wiki.
Definition at line 18 of file RestrictedUserGroupConfigReader.php.
| MediaWiki\User\RestrictedUserGroupConfigReader::__construct | ( | private readonly ServiceOptions | $options, |
| private readonly UserRequirementsConditionValidator | $userRequirementsConditionValidator ) |
Definition at line 31 of file RestrictedUserGroupConfigReader.php.
| MediaWiki\User\RestrictedUserGroupConfigReader::getConfig | ( | false|string | $wiki = false, |
| string | $scope = self::SCOPE_LOCAL ) |
Reads the restricted group configuration for the specified wiki, either from the ServiceOptions provided to the constructor (if the wiki is the local wiki) or from the global $wgConf variable (otherwise).
Only restrictions relevant for the given scope are returned: restrictions without a scope key are always included, while restrictions with a scope key are only included if the requested scope is listed.
| false | string | $wiki | The wiki ID for which to read the configuration. false means the current wiki. |
| string | $scope | The scope for which to read the configuration. Defaults to { |
Definition at line 46 of file RestrictedUserGroupConfigReader.php.
| const MediaWiki\User\RestrictedUserGroupConfigReader::CONSTRUCTOR_OPTIONS |
Definition at line 21 of file RestrictedUserGroupConfigReader.php.
| const MediaWiki\User\RestrictedUserGroupConfigReader::SCOPE_LOCAL = 'local' |
Scope value representing user groups as supported by MediaWiki core.
Other scopes may be added by extensions.
Definition at line 29 of file RestrictedUserGroupConfigReader.php.