Rule
class Rule
Rule class.
Methods
__construct(
mixed $identities)
Constructor.
array
getData()
Get the data for the action.
void
mergeIdentities(
mixed $identities)
Merges the identities
void
mergeIdentity(
integer $identity,
boolean $allow)
Merges the values for an identity.
mixed
allow(
mixed $identities)
Checks that this action can be performed by an identity.
string
__toString()
Convert this object into a JSON encoded string.
Details
__construct(
mixed $identities)
Constructor.
The input array must be in the form: array(-42 => true, 3 => true, 4 => false) or an equivalent JSON encoded string.