Class HTMLPurifier_LanguageFactory
Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks.
Note:
Thanks to MediaWiki for the general logic, although this version has been
entirely rewritten
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
public static
|
|
public
|
|
public
|
#
create(
Creates a language object, handles class fallbacks |
public
string|boolean
|
|
public
|
public
mixed
|
$cache |
|
#
Cache of language code information used to load HTMLPurifier_Language objects. Structure is: $factory->cache[$language_code][$key] = $value |
public
array
|
$keys | array('fallback', 'messages', 'errorNames') |
#
Valid keys in the HTMLPurifier_Language object. Designates which variables to slurp out of a message file. |
protected
mixed
|
$validator |
|
#
Instance to validate language codes. |
protected
mixed
|
$dir |
|
#
Cached copy of dirname(__FILE__), directory of current file without trailing slash. |
protected
array
|
$mergeable_keys_map | array('messages' => true, 'errorNames' => true) |
#
Keys whose contents are a hash map and can be merged. |
protected
array
|
$mergeable_keys_list | array() |
#
Keys whose contents are a list and can be merged. |