Rules
class Rules
Access rules class.
Methods
__construct(
mixed $input = '')
Constructor.
array
getData()
Get the data for the action.
void
mergeCollection(
mixed $input)
Method to merge a collection of Rules.
void
merge(
mixed $actions)
Method to merge actions with this object.
void
mergeAction(
string $action,
array $identities)
Merges an array of identities for an action.
mixed
allow(
string $action,
mixed $identity)
Checks that an action can be performed by an identity.
JObject
getAllowed(
mixed $identity)
Get the allowed actions for an identity.
string
__toString()
Magic method to convert the object to JSON string representation.
Details
__construct(
mixed $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.