Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($input='') | |
getData () | |
mergeCollection ($input) | |
merge ($actions) | |
mergeAction ($action, $identities) | |
allow ($action, $identity) | |
getAllowed ($identity) | |
__toString () | |
Attributs protégés | |
$data = array() | |
Access rules class.
__construct | ( | $input = '' | ) |
Constructor.
The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false)) or an equivalent JSON encoded string, or an object where properties are arrays.
mixed | $input | A JSON format string (probably from the database) or a nested array. |
Références $action, Access\$identities, $input, et elseif.
__toString | ( | ) |
Magic method to convert the object to JSON string representation.
Références $data, $name, et json_encode.
allow | ( | $action, | |
$identity | |||
) |
Checks that an action can be performed by an identity.
The identity is an integer where +ve represents a user group, and -ve represents a user.
string | $action | The name of the action. |
mixed | $identity | An integer representing the identity, or an array of identities |
Références $action.
getAllowed | ( | $identity | ) |
getData | ( | ) |
merge | ( | $actions | ) |
mergeAction | ( | $action, | |
$identities | |||
) |
Merges an array of identities for an action.
string | $action | The name of the action. |
array | $identities | An array of identities |
Références $action, et Access\$identities.
mergeCollection | ( | $input | ) |
Method to merge a collection of Rules.
Références $input.
Référencé par Access\getAssetRules().
|
protected |