Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 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() |
JAccessRules::__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éimplémentée dans JRules.
Références elseif.
JAccessRules::__toString | ( | ) |
Magic method to convert the object to JSON string representation.
Références $name.
JAccessRules::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 null.
JAccessRules::getAllowed | ( | $identity | ) |
Get the allowed actions for an identity.
mixed | $identity | An integer representing the identity or an array of identities |
Références $name, et JObject\set().
JAccessRules::getData | ( | ) |
Get the data for the action.
Références $data.
JAccessRules::merge | ( | $actions | ) |
Method to merge actions with this object.
mixed | $actions | JAccessRule object, an array of actions or a JSON string array of actions. |
JAccessRules::mergeAction | ( | $action, | |
$identities | |||
) |
Merges an array of identities for an action.
string | $action | The name of the action. |
array | $identities | An array of identities |
JAccessRules::mergeCollection | ( | $input | ) |
Method to merge a collection of JAccessRules.
mixed | $input | JAccessRule or array of JAccessRules |
Référencé par JAccess\getAssetRules().
|
protected |