MediaWiki REL1_39
|
Users can authorize applications to use their account via OAuth. More...
Public Member Functions | |
__construct (ServiceOptions $options) | |
getGrantGroups (array $grantsFilter=null) | |
Divide the grants into groups. | |
getGrantRights ( $grants) | |
Fetch the rights allowed by a set of grants. | |
getHiddenGrants () | |
Get the list of grants that are hidden and should always be granted. | |
getRightsByGrant () | |
Map all grants to corresponding user rights. | |
getValidGrants () | |
List all known grants. | |
grantsAreValid (array $grants) | |
Test that all grants in the list are known. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Users can authorize applications to use their account via OAuth.
Grants are used to limit permissions for these application. This service allows application logic to access grants.
Definition at line 33 of file GrantsInfo.php.
MediaWiki\Permissions\GrantsInfo::__construct | ( | ServiceOptions | $options | ) |
ServiceOptions | $options |
Definition at line 48 of file GrantsInfo.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
MediaWiki\Permissions\GrantsInfo::getGrantGroups | ( | array | $grantsFilter = null | ) |
Divide the grants into groups.
string[] | null | $grantsFilter |
Definition at line 107 of file GrantsInfo.php.
MediaWiki\Permissions\GrantsInfo::getGrantRights | ( | $grants | ) |
Fetch the rights allowed by a set of grants.
string[] | string | $grants |
Definition at line 80 of file GrantsInfo.php.
MediaWiki\Permissions\GrantsInfo::getHiddenGrants | ( | ) |
Get the list of grants that are hidden and should always be granted.
Definition at line 131 of file GrantsInfo.php.
MediaWiki\Permissions\GrantsInfo::getRightsByGrant | ( | ) |
Map all grants to corresponding user rights.
Definition at line 67 of file GrantsInfo.php.
References $res.
MediaWiki\Permissions\GrantsInfo::getValidGrants | ( | ) |
MediaWiki\Permissions\GrantsInfo::grantsAreValid | ( | array | $grants | ) |
Test that all grants in the list are known.
string[] | $grants |
Definition at line 98 of file GrantsInfo.php.
const MediaWiki\Permissions\GrantsInfo::CONSTRUCTOR_OPTIONS |
Definition at line 37 of file GrantsInfo.php.