Property | Type | Description | |
---|---|---|---|
$_permissionModel | string | ||
$_rolePermissionModel | string | ||
$_userRoleModel | string |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Rbac constructor. | |
isAllowed ( string $permissionName, string $userId = null ) : boolean |
Method | Description | |
---|---|---|
_getPermissionByName ( string $name ) : false | |
||
_getRolesByPermissionId ( integer $permissionId ) : array | ||
_getRolesByUserId ( string $userId ) : array | ||
_parsePermissionName ( string $permissionName ) : array |
public __construct ( array $options = [] ) | ||
$options | array |
protected _getPermissionByName ( string $name ) : false | |
||
$name | string | |
return | false | |
protected _getRolesByPermissionId ( integer $permissionId ) : array | ||
$permissionId | integer | |
return | array |
protected _getRolesByUserId ( string $userId ) : array | ||
$userId | string | |
return | array |
protected _parsePermissionName ( string $permissionName ) : array | ||
$permissionName | string | |
return | array |