ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilCachedLanguage. More...
Public Member Functions | |
isActive () | |
writeToCache () | |
deleteInCache () | |
Delete the cache entry for this language without flushing the whole global cache Using this function avoids a flush loop when languages are updated A missing entry will cause the next request to refill the cache in the constructor of this class. More... | |
flush () | |
setLanguageKey ($language_key) | |
getLanguageKey () | |
setLoaded ($loaded) | |
getLoaded () | |
setTranslations ($translations) | |
getTranslations () | |
Static Public Member Functions | |
static | getInstance ($key) |
Protected Member Functions | |
readFromCache () | |
readFromDB () | |
Protected Attributes | |
$global_cache | |
$loaded = false | |
$language_key = 'en' | |
$translations = array() | |
Static Protected Attributes | |
static | $instances = array() |
ilCachedLanguage::deleteInCache | ( | ) |
Delete the cache entry for this language without flushing the whole global cache Using this function avoids a flush loop when languages are updated A missing entry will cause the next request to refill the cache in the constructor of this class.
Definition at line 85 of file class.ilCachedLanguage.php.
References getLanguageKey(), and setLoaded().
ilCachedLanguage::flush | ( | ) |
Definition at line 127 of file class.ilCachedLanguage.php.
References readFromDB(), and writeToCache().
|
static |
$key |
Definition at line 117 of file class.ilCachedLanguage.php.
References $key.
Referenced by ilLanguage\__construct(), ilObjLanguageExt\_saveValues(), and ilObjLanguage\insert().
ilCachedLanguage::getLanguageKey | ( | ) |
Definition at line 149 of file class.ilCachedLanguage.php.
References $language_key.
Referenced by deleteInCache(), readFromCache(), readFromDB(), and writeToCache().
ilCachedLanguage::getLoaded | ( | ) |
ilCachedLanguage::getTranslations | ( | ) |
Definition at line 185 of file class.ilCachedLanguage.php.
References $translations.
Referenced by writeToCache().
ilCachedLanguage::isActive | ( | ) |
Definition at line 54 of file class.ilCachedLanguage.php.
|
protected |
Definition at line 60 of file class.ilCachedLanguage.php.
References $translations, getLanguageKey(), setLoaded(), and setTranslations().
|
protected |
Definition at line 94 of file class.ilCachedLanguage.php.
References $DIC, $ilDB, $res, $translations, getLanguageKey(), and setTranslations().
Referenced by flush().
ilCachedLanguage::setLanguageKey | ( | $language_key | ) |
string | $language_key |
Definition at line 140 of file class.ilCachedLanguage.php.
References $language_key.
ilCachedLanguage::setLoaded | ( | $loaded | ) |
boolean | $loaded |
Definition at line 158 of file class.ilCachedLanguage.php.
References $loaded.
Referenced by deleteInCache(), and readFromCache().
ilCachedLanguage::setTranslations | ( | $translations | ) |
array | $translations |
Definition at line 176 of file class.ilCachedLanguage.php.
References $translations.
Referenced by readFromCache(), and readFromDB().
ilCachedLanguage::writeToCache | ( | ) |
Definition at line 72 of file class.ilCachedLanguage.php.
References getLanguageKey(), and getTranslations().
Referenced by flush().
|
protected |
Definition at line 12 of file class.ilCachedLanguage.php.
|
staticprotected |
Definition at line 28 of file class.ilCachedLanguage.php.
|
protected |
Definition at line 20 of file class.ilCachedLanguage.php.
Referenced by getLanguageKey(), and setLanguageKey().
|
protected |
Definition at line 16 of file class.ilCachedLanguage.php.
Referenced by getLoaded(), and setLoaded().
|
protected |
Definition at line 24 of file class.ilCachedLanguage.php.
Referenced by getTranslations(), readFromCache(), readFromDB(), and setTranslations().