| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks. More...
 Collaboration diagram for HTMLPurifier_LanguageFactory:
 Collaboration diagram for HTMLPurifier_LanguageFactory:| Public Member Functions | |
| setup () | |
| Sets up the singleton, much like a constructor.  More... | |
| create ($config, $context, $code=false) | |
| Creates a language object, handles class fallbacks.  More... | |
| getFallbackFor ($code) | |
| Returns the fallback language for language.  More... | |
| loadLanguage ($code) | |
| Loads language into the cache, handles message file and fallbacks.  More... | |
| Static Public Member Functions | |
| static | instance ($prototype=null) | 
| Retrieve sole instance of the factory.  More... | |
| Data Fields | |
| $cache | |
| Cache of language code information used to load HTMLPurifier_Language objects.  More... | |
| $keys = array('fallback', 'messages', 'errorNames') | |
| Valid keys in the HTMLPurifier_Language object.  More... | |
| Protected Attributes | |
| $validator | |
| Instance to validate language codes.  More... | |
| $dir | |
| Cached copy of dirname(FILE), directory of current file without trailing slash.  More... | |
| $mergeable_keys_map = array('messages' => true, 'errorNames' => true) | |
| Keys whose contents are a hash map and can be merged.  More... | |
| $mergeable_keys_list = array() | |
| Keys whose contents are a list and can be merged.  More... | |
Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks.
Definition at line 10 of file LanguageFactory.php.
| HTMLPurifier_LanguageFactory::create | ( | $config, | |
| $context, | |||
| $code = false | |||
| ) | 
Creates a language object, handles class fallbacks.
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context | |
| bool | string | $code | Code to override configuration with. Private parameter. | 
Definition at line 88 of file LanguageFactory.php.
References $code, $config, $fallback, $file, $lang, create(), and getFallbackFor().
Referenced by create().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_LanguageFactory::getFallbackFor | ( | $code | ) | 
Returns the fallback language for language.
| string | $code | language code | 
Definition at line 136 of file LanguageFactory.php.
References $code, and loadLanguage().
Referenced by create().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Retrieve sole instance of the factory.
| HTMLPurifier_LanguageFactory | $prototype | Optional prototype to overload sole instance with, or bool true to reset to default factory. | 
Definition at line 59 of file LanguageFactory.php.
Referenced by HTMLPurifier_Language\load(), and HTMLPurifier\purify().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_LanguageFactory::loadLanguage | ( | $code | ) | 
Loads language into the cache, handles message file and fallbacks.
| string | $code | language code | 
Definition at line 146 of file LanguageFactory.php.
References $cache, $code, $fallback, $filename, and loadLanguage().
Referenced by getFallbackFor(), and loadLanguage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_LanguageFactory::setup | ( | ) | 
Sets up the singleton, much like a constructor.
Definition at line 75 of file LanguageFactory.php.
| HTMLPurifier_LanguageFactory::$cache | 
Cache of language code information used to load HTMLPurifier_Language objects.
Structure is: $factory->cache[$language_code][$key] = $value @type array
Definition at line 18 of file LanguageFactory.php.
Referenced by loadLanguage().
| 
 | protected | 
Cached copy of dirname(FILE), directory of current file without trailing slash.
@type string
Definition at line 39 of file LanguageFactory.php.
| HTMLPurifier_LanguageFactory::$keys = array('fallback', 'messages', 'errorNames') | 
Valid keys in the HTMLPurifier_Language object.
Designates which variables to slurp out of a message file. @type array
Definition at line 25 of file LanguageFactory.php.
| 
 | protected | 
Keys whose contents are a list and can be merged.
@value array lookup
Definition at line 51 of file LanguageFactory.php.
| 
 | protected | 
Keys whose contents are a hash map and can be merged.
@type array
Definition at line 45 of file LanguageFactory.php.
| 
 | protected | 
Instance to validate language codes.
@type HTMLPurifier_AttrDef_Lang
Definition at line 32 of file LanguageFactory.php.