public static function LingotekAccount::instance in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.2 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.4 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.6 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
Gets the singleton instance of the Account class.
Return value
LingotekAccount An instantiated LingotekAccount object.
7 calls to LingotekAccount::instance()
- lingotek_access_by_plan_type in ./
lingotek.util.inc - lingotek_admin_account_status_form in ./
lingotek.admin.inc - Form constructor for the administration form.
- lingotek_admin_additional_translation_settings_form in ./
lingotek.admin.inc - Additional translation form
- lingotek_admin_configuration_view in ./
lingotek.admin.inc - lingotek_admin_connection_form in ./
lingotek.admin.inc - Lingotek Connection Settings Form
File
- lib/
Drupal/ lingotek/ LingotekAccount.php, line 56 - 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;
}