You are here

function LingotekSession::__destruct in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 6 lingotek.session.inc \LingotekSession::__destruct()
  2. 7.2 lingotek.session.inc \LingotekSession::__destruct()
  3. 7.3 lingotek.session.inc \LingotekSession::__destruct()
  4. 7.4 lingotek.session.inc \LingotekSession::__destruct()
  5. 7.5 lingotek.session.inc \LingotekSession::__destruct()
  6. 7.6 lingotek.session.inc \LingotekSession::__destruct()

File

./lingotek.session.inc, line 46
Handles api calls, logging in and logging out of LingoTek

Class

LingotekSession

Code

function __destruct() {
  if ($this
    ->isLoggedIn()) {
    $this
      ->logout();
  }
}