\HTMLPurifier_Language_en_x_test
Synopsis
class HTMLPurifier_Language_en_x_test
extends HTMLPurifier_Language
{
- // Inherited members from HTMLPurifier_Language
- public string $code;
- public boolean $fallback;
- public array $messages;
- public array $errorNames;
- public boolean $error;
- public boolean $_loaded;
- protected $config;
- // Inherited methods from HTMLPurifier_Language
- public void __construct()
- public void load()
- public string getMessage()
- public string getErrorName()
- public void listify()
- public string formatMessage()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
+ | Make it private, fix usage in HTMLPurifier_LanguageTest |
117+ | Implement conditionals? Right now, some messages make reference to line numbers, but those aren't always available |
Members
protected
-
$config
Instances of HTMLPurifier_Config and HTMLPurifier_Context
public
-
$_loaded
Has the language object been loaded yet? -
$code
ISO 639 language code of language. Prefers shortest possible version -
$error
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. -
$errorNames
Array of localizable error codes -
$fallback
Fallback language code -
$messages
Array of localizable messages
Methods
Inherited from HTMLPurifier_Language
public
- formatMessage() — Formats a localised message with passed parameters
- getErrorName() — Retrieves a localised error name.
- getMessage() — Retrieves a localised message.
- listify() — Converts an array list into a string readable representation
- load() — Loads language object with necessary info from factory cache