public static function LingotekAccount::instance in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.7 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.
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;
}