Method | Description | |
---|---|---|
__construct ( array $hierarchy ) | Constructor. | |
getAccessibleRoles ( array $roles ) : array | Returns an array of roles that are accessible by $roles. |
Method | Description | |
---|---|---|
buildRoleMap ( array $hierarchy ) | Private function that parses the hierarchy array and builds up a hierarchy map |
public __construct ( array $hierarchy ) | ||
$hierarchy | array | Role hierarchy array from system configuration. |
public getAccessibleRoles ( array $roles ) : array | ||
$roles | array | |
return | array |