API Documentation for Yii 2.0
Interface yii\rbac\CheckAccessInterfaceFor more details and usage information on CheckAccessInterface, see the guide article on security authorization.
Method DetailscheckAccess()
public abstract methodChecks if the user has the specified permission.
public abstract boolean checkAccess ( $userId, $permissionName, $params = [] ) $userId string|integerThe user ID. This should be either an integer or a string representing the unique identifier of a user. See yii\web\User::$id.
$permissionName stringThe name of the permission to be checked against
$params arrayName-value pairs that will be passed to the rules associated with the roles and permissions assigned to the user.
return booleanWhether the user has the specified permission.
throws yii\base\InvalidParamExceptionif $permissionName does not refer to an existing permission
public function checkAccess($userId, $permissionName, $params = []);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4