You are here

public static function LingotekApi::instance in Lingotek Translation 7.6

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

Gets the singleton instance of the API class.

Return value

LingotekApi An instantiated LingotekApi object.

37 calls to LingotekApi::instance()
LingotekConfigSet::downloadTriggered in lib/Drupal/lingotek/LingotekConfigSet.php
Updates the local content of $target_code with data from a Lingotek Document
LingotekConfigSet::loadById in lib/Drupal/lingotek/LingotekConfigSet.php
Factory method for getting a loaded LingotekConfigSet object.
LingotekConfigSet::updateLocalContent in lib/Drupal/lingotek/LingotekConfigSet.php
Updates the local content with data from a Lingotek Document.
LingotekDocument::load in lib/Drupal/lingotek/LingotekDocument.php
Factory method for getting a loaded LingotekDocument object.
LingotekEntity::load in lib/Drupal/lingotek/LingotekEntity.php
Factory method for getting a loaded LingotekEntity object

... See full list

File

lib/Drupal/lingotek/LingotekApi.php, line 51
Defines Drupal\lingotek\LingotekApi

Class

LingotekApi
@file Defines Drupal\lingotek\LingotekApi

Code

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