class LingotekProfileManager in Lingotek Translation 7.7
A class wrapper for Lingotek Profiles
Hierarchy
- class \LingotekProfileManager
Expanded class hierarchy of LingotekProfileManager
File
- lib/
Drupal/ lingotek/ LingotekProfileManager.php, line 11 - Defines LingotekProfileManager
View source
class LingotekProfileManager {
protected static $profiles;
public static function getProfiles() {
if (!empty(self::$profiles)) {
return self::$profiles;
}
self::$profiles = variable_get('lingotek_profiles', array());
if (empty($profiles)) {
self::$profiles[] = array(
'name' => 'Automatic',
'auto_upload' => 1,
'auto_download' => 1,
);
self::$profiles[] = array(
'name' => 'Manual',
'auto_upload' => 0,
'auto_download' => 0,
);
variable_set('lingotek_profiles', self::$profiles);
}
return self::$profiles;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LingotekProfileManager:: |
protected static | property | ||
LingotekProfileManager:: |
public static | function |