API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($config, $context) | |
load () | |
getMessage ($key) | |
getErrorName ($int) | |
listify ($array) | |
formatMessage ($key, $args=array()) | |
Data Fields | |
$code = 'en' | |
$fallback = false | |
$messages = array() | |
$errorNames = array() | |
$error = false | |
$_loaded = false | |
Protected Attributes | |
$config | |
$context | |
Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.
__construct | ( | $config, | |
$context | |||
) |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
formatMessage | ( | $key, | |
$args = array() |
|||
) |
Formats a localised message with passed parameters
string | $key | string identifier of message |
array | $args | Parameters to substitute in |
getErrorName | ( | $int | ) |
Retrieves a localised error name.
int | $int | error number, corresponding to PHP's error reporting |
getMessage | ( | $key | ) |
Retrieves a localised message.
string | $key | string identifier of message |
listify | ( | $array | ) |
Converts an array list into a string readable representation
array | $array |
load | ( | ) |
Loads language object with necessary info from factory cache
$_loaded = false |
Has the language object been loaded yet? @type bool
$code = 'en' |
ISO 639 language code of language. Prefers shortest possible version. @type string
|
protected |
@type HTMLPurifier_Config
|
protected |
@type HTMLPurifier_Context
$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
$errorNames = array() |
Array of localizable error codes. @type array
$fallback = false |
Fallback language code. @type bool|string
$messages = array() |
Array of localizable messages. @type array