executeRule() protected method
Executes the rule associated with the specified auth item.
If the item does not specify a rule, this method will return true. Otherwise, it will return the value of yii\rbac\Rule::execute().
| protected boolean executeRule ( $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 auth item that needs to execute its rule |
| $params | array |
Parameters passed to yii\rbac\CheckAccessInterface::checkAccess() and will be passed to the rule |
| return | boolean |
The return value of yii\rbac\Rule::execute(). If the auth item does not specify a rule, true will be returned. |
| throws | yii\base\InvalidConfigException |
if the auth item has an invalid rule. |
Please login to continue.