execute() public abstract method
Executes the rule.
public abstract boolean execute ( $user, $item, $params ) | ||
---|---|---|
$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 | yii\rbac\Item |
The role or permission that this rule is associated with |
$params | array |
Parameters passed to yii\rbac\CheckAccessInterface::checkAccess(). |
return | boolean |
A value indicating whether the rule permits the auth item it is associated with. |
Please login to continue.