public function LingotekSession::logout in Lingotek Translation 7.6
Same name and namespace in other branches
- 6 lingotek.session.inc \LingotekSession::logout()
- 7.7 lingotek.session.inc \LingotekSession::logout()
- 7.2 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()
1 call to LingotekSession::logout()
File
- ./
lingotek.session.inc, line 290 - 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;
LingotekLog::error('Unable to log out.');
}
}