프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$createdAt | UNIX timestamp representing the rule creation time | ||
$name | name of the rule | ||
$updatedAt | UNIX timestamp representing the rule updating time |
메소드 | 설명 | |
---|---|---|
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()]]. |
리턴 | boolean | a value indicating whether the rule permits the auth item it is associated with. |