|
| | create ($config, $context, $code=false) |
| | Creates a language object, handles class fallbacks.
|
| |
| | getFallbackFor ($code) |
| | Returns the fallback language for language.
|
| |
| | loadLanguage ($code) |
| | Loads language into the cache, handles message file and fallbacks.
|
| |
| | setup () |
| | Sets up the singleton, much like a constructor.
|
| |
|
| static | instance ($prototype=null) |
| | Retrieve sole instance of the factory.
|
| |
|
| | $dir |
| | Cached copy of dirname(FILE), directory of current file without trailing slash.
|
| |
| | $mergeable_keys_list = array() |
| | Keys whose contents are a list and can be merged.
|
| |
| | $mergeable_keys_map = array('messages' => true, 'errorNames' => true) |
| | Keys whose contents are a hash map and can be merged.
|
| |
| | $validator |
| | Instance to validate language codes.
|
| |
◆ create()
| HTMLPurifier_LanguageFactory::create |
( |
| $config, |
|
|
| $context, |
|
|
| $code = false ) |
Creates a language object, handles class fallbacks.
- Parameters
-
- Return values
-
◆ getFallbackFor()
| HTMLPurifier_LanguageFactory::getFallbackFor |
( |
| $code | ) |
|
Returns the fallback language for language.
- Note
- Loads the original language into cache
- Parameters
-
- Return values
-
◆ instance()
| static HTMLPurifier_LanguageFactory::instance |
( |
| $prototype = null | ) |
|
|
static |
Retrieve sole instance of the factory.
- Parameters
-
- Return values
-
◆ loadLanguage()
| HTMLPurifier_LanguageFactory::loadLanguage |
( |
| $code | ) |
|
Loads language into the cache, handles message file and fallbacks.
- Parameters
-
◆ setup()
| HTMLPurifier_LanguageFactory::setup |
( |
| ) |
|
Sets up the singleton, much like a constructor.
- Note
- Prevents people from getting this outside of the singleton
◆ $cache
| HTMLPurifier_LanguageFactory::$cache |
Cache of language code information used to load HTMLPurifier_Language objects.
Structure is: $factory->cache[$language_code][$key] = $value @type array
◆ $dir
| HTMLPurifier_LanguageFactory::$dir |
|
protected |
Cached copy of dirname(FILE), directory of current file without trailing slash.
@type string
◆ $keys
| 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
◆ $mergeable_keys_list
| HTMLPurifier_LanguageFactory::$mergeable_keys_list = array() |
|
protected |
Keys whose contents are a list and can be merged.
@value array lookup
◆ $mergeable_keys_map
| HTMLPurifier_LanguageFactory::$mergeable_keys_map = array('messages' => true, 'errorNames' => true) |
|
protected |
Keys whose contents are a hash map and can be merged.
@type array
◆ $validator
| HTMLPurifier_LanguageFactory::$validator |
|
protected |
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/LanguageFactory.php