| Total Complexity | 9 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Perm |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return Perm |
||
| 12 | */ |
||
| 13 | public static function getHandler() |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param $user |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getUserGroup($user) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param $user |
||
| 39 | * @param $perm |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function getAuthorizedCat($user, $perm) |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param $user |
||
| 64 | * @param $perm |
||
| 65 | * @param $catId |
||
| 66 | * |
||
| 67 | * @return bool |
||
| 68 | */ |
||
| 69 | public function isAllowed($user, $perm, $catId) |
||
| 76 |