Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | trait AclControllerTrait { |
||
16 | |||
17 | public abstract function _getRole(); |
||
18 | |||
19 | /** |
||
20 | * Returns True if access to the controller is allowed for the role returned by _getRole method. |
||
21 | * To be override in sub classes |
||
22 | * |
||
23 | * @param string $action |
||
24 | * @return boolean |
||
25 | */ |
||
26 | 1 | public function isValid($action) { |
|
36 |