| ILIAS
    release_5-4 Revision v5.4.26-12-gabc799a52e6
    | 
Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier. More...
 Collaboration diagram for HTMLPurifier_Language:
 Collaboration diagram for HTMLPurifier_Language:| Public Member Functions | |
| __construct ($config, $context) | |
| load () | |
| Loads language object with necessary info from factory cache.  More... | |
| getMessage ($key) | |
| Retrieves a localised message.  More... | |
| getErrorName ($int) | |
| Retrieves a localised error name.  More... | |
| listify ($array) | |
| Converts an array list into a string readable representation.  More... | |
| formatMessage ($key, $args=array()) | |
| Formats a localised message with passed parameters.  More... | |
| Data Fields | |
| $code = 'en' | |
| ISO 639 language code of language.  More... | |
| $fallback = false | |
| Fallback language code.  More... | |
| $messages = array() | |
| Array of localizable messages.  More... | |
| $errorNames = array() | |
| Array of localizable error codes.  More... | |
| $error = false | |
| True if no message file was found for this language, so English is being used instead.  More... | |
| $_loaded = false | |
| Has the language object been loaded yet? @type bool.  More... | |
| Protected Attributes | |
| $config | |
| @type HTMLPurifier_Config  More... | |
| $context | |
| @type HTMLPurifier_Context  More... | |
Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.
Definition at line 7 of file Language.php.
| HTMLPurifier_Language::__construct | ( | $config, | |
| $context | |||
| ) | 
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context | 
Definition at line 63 of file Language.php.
| HTMLPurifier_Language::formatMessage | ( | $key, | |
| $args = array() | |||
| ) | 
Formats a localised message with passed parameters.
| string | $key | string identifier of message | 
| array | $args | Parameters to substitute in | 
Definition at line 148 of file Language.php.
References $i, $key, $keys, listify(), and load().
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_Language::getErrorName | ( | $int | ) | 
Retrieves a localised error name.
| int | $int | error number, corresponding to PHP's error reporting | 
Definition at line 107 of file Language.php.
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_Language::getMessage | ( | $key | ) | 
Retrieves a localised message.
| string | $key | string identifier of message | 
Definition at line 91 of file Language.php.
Referenced by listify().
 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_Language::listify | ( | $array | ) | 
Converts an array list into a string readable representation.
| array | $array | 
Definition at line 123 of file Language.php.
References $c, $i, $ret, and getMessage().
Referenced by formatMessage().
 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_Language::load | ( | ) | 
Loads language object with necessary info from factory cache.
Definition at line 73 of file Language.php.
References $code, $factory, $key, and HTMLPurifier_LanguageFactory\instance().
Referenced by formatMessage(), getErrorName(), and getMessage().
 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_Language::$_loaded = false | 
Has the language object been loaded yet? @type bool.
Definition at line 47 of file Language.php.
| HTMLPurifier_Language::$code = 'en' | 
ISO 639 language code of language.
Prefers shortest possible version. @type string
Definition at line 14 of file Language.php.
Referenced by load().
| 
 | protected | 
| 
 | protected | 
| HTMLPurifier_Language::$error = false | 
True if no message file was found for this language, so English is being used instead.
Check this if you'd like to notify the user that they've used a non-supported language. @type bool
Definition at line 40 of file Language.php.
| HTMLPurifier_Language::$errorNames = array() | 
| HTMLPurifier_Language::$fallback = false | 
| HTMLPurifier_Language::$messages = array() |