public static function LingotekAccount::instance in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.2 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::instance()
- 7.3 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.
9 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_account_status_form_submit in ./
lingotek.admin.inc - Account Status Submit Handler
- lingotek_admin_additional_translation_settings_form in ./
lingotek.admin.inc - Additional translation form
- lingotek_admin_comment_translation_settings_form in ./
lingotek.admin.inc - Additional translation form
File
- lib/
Drupal/ lingotek/ LingotekAccount.php, line 63 - 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;
}