Exemple #1
0
 /**
  * 
  * @return \Application\Models\User
  */
 public static function getCurrentLogged()
 {
     $user = null;
     $username = Filter::html_entity_invert(\Application\Services\Session::get(\Application\Services\Session::SESSION_USER_NAME));
     if ($username !== null) {
         $user = self::getByUsername($username);
     }
     return $user;
 }