Property | Type | Description | |
---|---|---|---|
$groups | |||
$role |
Method | Description | |
---|---|---|
__construct ( ) | ||
getGroups ( ) : array | Get groups | |
getParents ( ) : array | Get roles | |
getRoleId ( ) : integer | Get role id | |
hasPermission ( string $permission, $resource = null, $action = null ) : boolean | Check permissions | |
setRole ( |
Set role |
public hasPermission ( string $permission, $resource = null, $action = null ) : boolean | ||
$permission | string | |
return | boolean |
public setRole ( |
||
$role | ||
return |