|
MediaWiki REL1_39
|
Static Public Member Functions | |
| static | getGrantGroups ( $grantsFilter=null) |
| Divide the grants into groups. | |
| static | getGrantRights ( $grants) |
| Fetch the rights allowed by a set of grants. | |
| static | getGrantsLink ( $grant, $lang=null) |
| Generate a link to Special:ListGrants for a particular grant name. | |
| static | getGrantsWikiText ( $grantsFilter, $lang=null) |
| Generate wikitext to display a list of grants. | |
| static | getHiddenGrants () |
| Get the list of grants that are hidden and should always be granted. | |
| static | getRightsByGrant () |
| Map all grants to corresponding user rights. | |
| static | getValidGrants () |
| List all known grants. | |
| static | grantName ( $grant, $lang=null) |
| Fetch the description of the grant. | |
| static | grantNames (array $grants, $lang=null) |
| Fetch the descriptions for the grants. | |
| static | grantsAreValid (array $grants) |
| Test that all grants in the list are known. | |
A collection of public static functions to deal with grants.
Definition at line 29 of file MWGrants.php.
|
static |
Divide the grants into groups.
| string[] | null | $grantsFilter |
Definition at line 110 of file MWGrants.php.
References wfDeprecated().
|
static |
Fetch the rights allowed by a set of grants.
| string[] | string | $grants |
Definition at line 86 of file MWGrants.php.
References wfDeprecated().
|
static |
Generate a link to Special:ListGrants for a particular grant name.
This should be used to link end users to a full description of what rights they are giving when they authorize a grant.
| string | $grant | the grant name |
| Language | string | null | $lang |
Definition at line 139 of file MWGrants.php.
References $lang, and wfDeprecated().
|
static |
Generate wikitext to display a list of grants.
| string[] | null | $grantsFilter | If non-null, only display these grants. |
| Language | string | null | $lang |
Definition at line 153 of file MWGrants.php.
References $lang, and wfDeprecated().
|
static |
Get the list of grants that are hidden and should always be granted.
Definition at line 121 of file MWGrants.php.
References wfDeprecated().
|
static |
Map all grants to corresponding user rights.
Definition at line 48 of file MWGrants.php.
References wfDeprecated().
|
static |
List all known grants.
Definition at line 37 of file MWGrants.php.
References wfDeprecated().
|
static |
Fetch the description of the grant.
| string | $grant | |
| Language | string | null | $lang |
Definition at line 61 of file MWGrants.php.
References $lang, and wfDeprecated().
|
static |
Fetch the descriptions for the grants.
| string[] | $grants | |
| Language | string | null | $lang |
Definition at line 74 of file MWGrants.php.
References $lang, and wfDeprecated().
|
static |
Test that all grants in the list are known.
| string[] | $grants |
Definition at line 98 of file MWGrants.php.
References wfDeprecated().