Свойство | Type | Description | |
---|---|---|---|
$createdAt | UNIX timestamp representing the rule creation time | ||
$name | name of the rule | ||
$updatedAt | UNIX timestamp representing the rule updating time |
Méthode | Description | |
---|---|---|
execute ( string | integer $user, |
Executes the rule. |
abstract public execute ( string | integer $user, |
||
$user | string | integer | the user ID. This should be either an integer or a string representing the unique identifier of a user. See [[\yii\web\User::id]]. |
$item | the role or permission that this rule is associated with | |
$params | array | parameters passed to [[CheckAccessInterface::checkAccess()]]. |
Résultat | boolean | a value indicating whether the rule permits the auth item it is associated with. |