| 1 | <?php |
||
| 7 | class RolesRepository extends Repository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Administrator. |
||
| 11 | */ |
||
| 12 | const ADMIN = 'admin'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Simple user role. |
||
| 16 | */ |
||
| 17 | const USER = 'member'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return Role |
||
| 21 | */ |
||
| 22 | public function getModel() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get administrator role. |
||
| 29 | * |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function getAdminRole() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get simple user's role. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function getSimpleUserRole() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get all active roles. |
||
| 53 | * |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function getPublic() |
||
| 63 | } |