getRoleById() public static method

public static getRoleById ( $id )
Example #1
0
 private function getRole()
 {
     $auth = $this->session->get('auth');
     if (!$auth) {
         $role = 'guest';
     } else {
         if ($auth->admin_session == true) {
             $role = \Admin\Model\AdminUser::getRoleById($auth->id);
         } else {
             $role = 'member';
         }
     }
     return $role;
 }