Exemple #1
0
 public static function getUser()
 {
     $session = self::getSession();
     $user = $session->get('user');
     if (empty($user)) {
         $user = Authenticate::set_public_user();
     }
     return $user;
 }