◆ __construct()
__construct |
( |
|
$identities | ) |
|
Constructor.
The input array must be in the form: array(-42 => true, 3 => true, 4 => false) or an equivalent JSON encoded string.
- Paramètres
-
mixed | $identities | A JSON format string (probably from the database) or a named array. |
- Depuis
- 1.7.0
◆ __toString()
Convert this object into a JSON encoded string.
- Renvoie
- string JSON encoded string
- Depuis
- 1.7.0
◆ allow()
Checks that this action can be performed by an identity.
The identity is an integer where +ve represents a user group, and -ve represents a user.
- Paramètres
-
mixed | $identities | An integer or array of integers representing the identities to check. |
- Renvoie
- mixed True if allowed, false for an explicit deny, null for an implicit deny.
- Depuis
- 1.7.0
Références $result, et null.
◆ getData()
Get the data for the action.
- Renvoie
- array A named array
- Depuis
- 1.7.0
Références $data.
◆ mergeIdentities()
mergeIdentities |
( |
|
$identities | ) |
|
Merges the identities
- Paramètres
-
mixed | $identities | An integer or array of integers representing the identities to check. |
- Renvoie
- void
- Depuis
- 1.7.0
◆ mergeIdentity()
mergeIdentity |
( |
|
$identity, |
|
|
|
$allow |
|
) |
| |
Merges the values for an identity.
- Paramètres
-
integer | $identity | The identity. |
boolean | $allow | The value for the identity (true == allow, false == deny). |
- Renvoie
- void
- Depuis
- 1.7.0
◆ $data
La documentation de cette classe a été générée à partir du fichier suivant :