login (); } catch (Exception $e) { if (self::LOGIN_REQUIRED) throw $e; } if (self::PARAMS !== NULL && !$this->checkParams ($_REQUEST, self::PARAMS)) throw new Lib\UserException (s('Missing parameters')); return $this->run ($db); } /** * Authenticates the user agaisnt database and returns its associated * database connection. * * return Db\Conn The database connection **/ function login () { return $this->app->login (); } /** * Logouts the current user. **/ function logout () { $this->app->logout (); } } ?>