JAccessRules
JAccessRules class.
Located in /libraries/joomla/access/rules.php (line 19)
JAccessRules (Subpackage Access)
| Class | Description |
|---|---|
JRules
|
Deprecated class placeholder. You should use JAccessRules instead. |
array
$data
= array() (line 27)
A named array.
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.
- JRules::__construct() : Constructor.
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
Get the allowed actions for an identity.
- mixed $identity: An integer representing the identity or an array of identities
Method to merge actions with this object.
- mixed $actions: JAccessRule object, an array of actions or a JSON string array of actions.
Merges an array of identities for an action.
- string $action: The name of the action.
- array $identities: An array of identities
Method to merge a collection of JAccessRules.
- mixed $input: JAccessRule or array of JAccessRules
Magic method to convert the object to JSON string representation.
JAccessRules (Subpackage Access)