filters\AccessRule matchVerb()

matchVerb() protected method protected boolean matchVerb ( $verb )$verb string The request method. return boolean Whether the rule applies to the request

filters\AccessRule matchRole()

matchRole() protected method protected boolean matchRole ( $user )$user yii\web\User The user object return boolean Whether the rule applies to the role

filters\AccessRule matchIP()

matchIP() protected method protected boolean matchIP ( $ip )$ip string The IP address return boolean Whether the rule applies to the IP address

filters\AccessRule matchCustom()

matchCustom() protected method protected boolean matchCustom ( $action )$action yii\base\Action The action to be performed return boolean Whether the rule should be applied

filters\AccessRule matchController()

matchController() protected method protected boolean matchController ( $controller )$controller yii\base\Controller The controller return boolean Whether the rule applies to the controller

filters\AccessRule matchAction()

matchAction() protected method protected boolean matchAction ( $action )$action yii\base\Action The action return boolean Whether the rule applies to the action

filters\AccessRule allows()

allows() public method Checks whether the Web user is allowed to perform the specified action. public boolean|null allows ( $action, $user, $request )$action yii\base\Action The action to be performed $user yii\web\User The user object $request yii\web\Request return boolean|null True if the user is allowed, false if the user is denied, null if the rule does not apply to the user

filters\AccessRule $verbs

$verbs public property List of request methods (e.g. GET, POST) that this rule applies to. If not set or empty, it means this rule applies to all request methods. See also yii\web\Request::$method. public array $verbs = null

filters\AccessRule $roles

$roles public property List of roles that this rule applies to. Two special roles are recognized, and they are checked via yii\web\User::$isGuest: ?: matches a guest user (not authenticated yet) @: matches an authenticated user If you are using RBAC (Role-Based Access Control), you may also specify role or permission names. In this case, yii\web\User::can() will be called to check access. If this property is not set or empty, it means this rule applies to all roles. public array $roles =

filters\AccessRule $matchCallback

$matchCallback public property A callback that will be called to determine if the rule should be applied. The signature of the callback should be as follows: function ($rule, $action) where $rule is this rule, and $action is the current action object. The callback should return a boolean value indicating whether this rule should be applied. public callable $matchCallback = null