include/HTMLPurifier/standalone/HTMLPurifier/Language/classes/en-x-test.php
\HTMLPurifier_Language_en_x_test
Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.
- Parent(s)
- \HTMLPurifier_Language
Properties
$_loaded= 'false'
false
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$_loaded
$code= ''en''
ISO 639 language code of language. Prefers shortest possible version
Inherited from: \HTMLPurifier_Language::$$code'en'
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$code
$config= ''
Instances of HTMLPurifier_Config and HTMLPurifier_Context
Inherited from: \HTMLPurifier_Language::$$config- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$config
$context= ''
Instances of HTMLPurifier_Config and HTMLPurifier_Context
Inherited from: \HTMLPurifier_Language::$$context- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$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.
Inherited from: \HTMLPurifier_Language::$$errorfalse
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$error
$errorNames= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$errorNames
$fallback= 'false'
false
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$fallback
$messages= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \HTMLPurifier_Language::$$messages
Methods
__construct(
$config, $context
)
:
void
Name | Type | Description |
---|---|---|
$config | ||
$context |
formatMessage(
\$key $key, \$args $args
=
array()
)
:
string
Formats a localised message with passed parameters
Inherited from: \HTMLPurifier_Language::formatMessage()Name | Type | Description |
---|---|---|
$key | \$key | string identifier of message |
$args | \$args | Parameters to substitute in |
Type | Description |
---|---|
string | localised message |
getErrorName(
\$int $int
)
:
string
Name | Type | Description |
---|---|---|
$int | \$int | integer error number, corresponding to PHP's error reporting |
Type | Description |
---|---|
string | localised message |
getMessage(
\$key $key
)
:
string
Name | Type | Description |
---|---|---|
$key | \$key | string identifier of message |
Type | Description |
---|---|
string | localised message |
listify(
$array
)
:
void
Converts an array list into a string readable representation
Inherited from: \HTMLPurifier_Language::listify()Name | Type | Description |
---|---|---|
$array |
load(
)
:
void
Loads language object with necessary info from factory cache
Inherited from: \HTMLPurifier_Language::load()- Note
- This is a lazy loader