You are here

public static function LingotekAccount::instance in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
  2. 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
  3. 7.4 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
  4. 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
  5. 7.6 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()

Gets the singleton instance of the Account class.

Return value

LingotekAccount An instantiated LingotekAccount object.

3 calls to LingotekAccount::instance()
lingotek_admin_form in ./lingotek.admin.inc
Form constructor for the administration form.
lingotek_dashboard in ./lingotek.dashboard.inc
Tab: Dashboard - The main Lingotek dashboard page.
lingotek_get_account_status in ./lingotek.admin.inc
Manually Triggered Account Status Check

File

lib/Drupal/lingotek/LingotekAccount.php, line 70
Defines LingotekAccount.

Class

LingotekAccount
A class representing a Lingotek Account

Code

public static function instance() {
  if (!isset(self::$instance)) {
    $class_name = __CLASS__;
    self::$instance = new $class_name();
  }
  return self::$instance;
}