|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilCachedLanguage. More...
Collaboration diagram for ilCachedLanguage: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().
Here is the call graph for this function:| ilCachedLanguage::flush | ( | ) |
Definition at line 125 of file class.ilCachedLanguage.php.
References readFromDB(), and writeToCache().
Here is the call graph for this function:
|
static |
| $key |
Definition at line 115 of file class.ilCachedLanguage.php.
Referenced by ilLanguage\__construct(), ilObjLanguageExt\_saveValues(), and ilObjLanguageDBAccess\replaceLangModules().
Here is the caller graph for this function:| ilCachedLanguage::getLanguageKey | ( | ) |
Definition at line 147 of file class.ilCachedLanguage.php.
References $language_key.
Referenced by deleteInCache(), readFromCache(), readFromDB(), and writeToCache().
Here is the caller graph for this function:| ilCachedLanguage::getLoaded | ( | ) |
Definition at line 165 of file class.ilCachedLanguage.php.
References $loaded.
| ilCachedLanguage::getTranslations | ( | ) |
Definition at line 183 of file class.ilCachedLanguage.php.
References $translations.
Referenced by writeToCache().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Definition at line 92 of file class.ilCachedLanguage.php.
References $DIC, $ilDB, $res, $translations, getLanguageKey(), and setTranslations().
Referenced by flush().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCachedLanguage::setLanguageKey | ( | $language_key | ) |
| string | $language_key |
Definition at line 138 of file class.ilCachedLanguage.php.
References $language_key.
| ilCachedLanguage::setLoaded | ( | $loaded | ) |
| boolean | $loaded |
Definition at line 156 of file class.ilCachedLanguage.php.
References $loaded.
Referenced by deleteInCache(), and readFromCache().
Here is the caller graph for this function:| ilCachedLanguage::setTranslations | ( | $translations | ) |
| array | $translations |
Definition at line 174 of file class.ilCachedLanguage.php.
References $translations.
Referenced by readFromCache(), and readFromDB().
Here is the caller graph for this function:| ilCachedLanguage::writeToCache | ( | ) |
Definition at line 72 of file class.ilCachedLanguage.php.
References getLanguageKey(), and getTranslations().
Referenced by flush().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().