![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
| setup () | |
| create ($config, $context, $code=false) | |
| getFallbackFor ($code) | |
| loadLanguage ($code) | |
Static Public Member Functions | |
| static | instance ($prototype=null) |
Data Fields | |
| $cache | |
| $keys = array('fallback', 'messages', 'errorNames') | |
Protected Attributes | |
| $validator | |
| $dir | |
| $mergeable_keys_map = array('messages' => true, 'errorNames' => true) | |
| $mergeable_keys_list = array() | |
Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks.
| 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. |


| getFallbackFor | ( | $code | ) |
Returns the fallback language for language
| string | $code | language code |


|
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. |

| loadLanguage | ( | $code | ) |
Loads language into the cache, handles message file and fallbacks
| string | $code | language code |


| setup | ( | ) |
Sets up the singleton, much like a constructor
| $cache |
Cache of language code information used to load HTMLPurifier_Language objects. Structure is: $factory->cache[$language_code][$key] = $value @type array
|
protected |
Cached copy of dirname(FILE), directory of current file without trailing slash. @type string
| $keys = array('fallback', 'messages', 'errorNames') |
Valid keys in the HTMLPurifier_Language object. Designates which variables to slurp out of a message file. @type array
|
protected |
Keys whose contents are a list and can be merged. @value array lookup
Keys whose contents are a hash map and can be merged. @type array
|
protected |
Instance to validate language codes. @type HTMLPurifier_AttrDef_Lang