/** * Returns the current status * * @return array */ public function getStatus() { $loginStatus = $this->sessionManager->valueForKey('loginStatus'); if ($loginStatus === NULL) { $loginStatus = self::STATUS_LOGGED_OUT; } return array('status' => $loginStatus); }
/** * Tries to authenticate the current request * * @return bool Returns if the authentication was successful */ public function authenticate() { return $this->sessionManager->valueForKey('loginStatus') === AuthHandler::STATUS_LOGGED_IN; }