A localisation cache optimised for loading large amounts of data for many languages.
More...
|
| getItem ($code, $key) |
|
| getSubitem ($code, $key, $subkey) |
|
| recache ($code) |
|
| unload ($code) |
|
| __construct ($conf) |
| Constructor. More...
|
|
| disableBackend () |
| Disable the storage backend. More...
|
|
| getCompiledPluralRules ($code) |
| Get the compiled plural rules for a given language from the XML files. More...
|
|
| getItem ($code, $key) |
| Get a cache item. More...
|
|
| getMessagesDirs () |
| Gets the combined list of messages dirs from core and extensions. More...
|
|
| getPluralRules ($code) |
| Get the plural rules for a given language from the XML files. More...
|
|
| getPluralRuleTypes ($code) |
| Get the plural rule types for a given language from the XML files. More...
|
|
| getSubitem ($code, $key, $subkey) |
| Get a subitem, for instance a single message for a given language. More...
|
|
| getSubitemList ($code, $key) |
| Get the list of subitem keys for a given item. More...
|
|
| initShallowFallback ($primaryCode, $fallbackCode) |
| Create a fallback from one language to another, without creating a complete persistent cache. More...
|
|
| isExpired ($code) |
| Returns true if the cache identified by $code is missing or expired. More...
|
|
| isMergeableKey ($key) |
| Returns true if the given key is mergeable, that is, if it is an associative array which can be merged through a fallback sequence. More...
|
|
| readJSONFile ($fileName) |
| Read a JSON file containing localisation messages. More...
|
|
| recache ($code) |
| Load localisation data for a given language for both core and extensions and save it to the persistent cache store and the process cache. More...
|
|
| unload ($code) |
| Unload the data for a given language from the object cache. More...
|
|
| unloadAll () |
| Unload all data. More...
|
|
|
| readPHPFile ($fileName, $fileType) |
|
| trimCache () |
| Unload cached languages until there are less than $this->maxLoadedLangs. More...
|
|
| buildPreload ($data) |
| Build the preload item from the given pre-cache data. More...
|
|
| initLanguage ($code) |
| Initialise a language in this object. More...
|
|
| loadItem ($code, $key) |
| Load an item into the cache. More...
|
|
| loadPluralFile ($fileName) |
| Load a plural XML file with the given filename, compile the relevant rules, and save the compiled rules in a process-local cache. More...
|
|
| loadPluralFiles () |
| Load the plural XML files. More...
|
|
| loadSubitem ($code, $key, $subkey) |
| Load a subitem into the cache. More...
|
|
| mergeExtensionItem ($codeSequence, $key, &$value, $fallbackValue) |
| Given an array mapping language code to localisation value, such as is found in extension *.i18n.php files, iterate through a fallback sequence to merge the given data with an existing primary value. More...
|
|
| mergeItem ($key, &$value, $fallbackValue) |
| Merge two localisation values, a primary and a fallback, overwriting the primary value in place. More...
|
|
| mergeMagicWords (&$value, $fallbackValue) |
|
| readPHPFile ($_fileName, $_fileType) |
| Read a PHP file containing localisation data. More...
|
|
| readSourceFilesAndRegisterDeps ($code, &$deps) |
| Read the data from the source files for a given language, and register the relevant dependencies in the $deps array. More...
|
|
A localisation cache optimised for loading large amounts of data for many languages.
Used by rebuildLocalisationCache.php.
Definition at line 25 of file LocalisationCacheBulkLoad.php.