public function logout(AIS2ServerConnection $connection) { $exceptions = array(); try { parent::logout($connection); } catch (AIS2LoginException $e) { $exceptions[] = $e; } try { $this->cosignLogin->logout($connection); } catch (AIS2LoginException $e) { $exceptions[] = $e; } // TODO(ppershing): make something similar as umbrella exception in gwt if (count($exceptions) != 0) { $str = ""; foreach ($exceptions as $e) { $str .= '[' . $e->getMessage() . ']'; } throw new Exception("There were exceptions while logging in: " . $str); } return true; }
public function logout(HttpConnection $connection) { $connection->post(new NullTrace(), self::COSIGN_LOGOUT, array('verify' => 'Odhlásiť', 'url' => self::MAIN_PAGE)); return parent::logout($connection); }