public function LingotekSession::logout in Lingotek Translation 7.2
Same name and namespace in other branches
- 6 lingotek.session.inc \LingotekSession::logout()
- 7.7 lingotek.session.inc \LingotekSession::logout()
- 7.3 lingotek.session.inc \LingotekSession::logout()
- 7.4 lingotek.session.inc \LingotekSession::logout()
- 7.5 lingotek.session.inc \LingotekSession::logout()
- 7.6 lingotek.session.inc \LingotekSession::logout()
1 call to LingotekSession::logout()
File
- ./
lingotek.session.inc, line 263 - Handles api calls, logging in and logging out of LingoTek
Class
Code
public function logout() {
$json = $this
->request('logout');
if ($json->results == "success") {
$this->logged_in = FALSE;
}
else {
$this->logged_in = TRUE;
lingotek_error('Unable to log out.');
}
}