XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_Language
+ Graphe d'héritage de HTMLPurifier_Language:

Fonctions membres publiques

 __construct ($config, $context)
 
 load ()
 
 getMessage ($key)
 
 getErrorName ($int)
 
 listify ($array)
 
 formatMessage ($key, $args=array())
 

Champs de données

 $code = 'en'
 
 $fallback = false
 
 $messages = array()
 
 $errorNames = array()
 
 $error = false
 
 $_loaded = false
 

Attributs protégés

 $config
 
 $context
 

Description détaillée

Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config,
  $context 
)
Paramètres
HTMLPurifier_Config$config
HTMLPurifier_Context$context

Documentation des fonctions membres

◆ formatMessage()

formatMessage (   $key,
  $args = array() 
)

Formats a localised message with passed parameters

Paramètres
string$keystring identifier of message
array$argsParameters to substitute in
Renvoie
string localised message
A faire:
Implement conditionals? Right now, some messages make reference to line numbers, but those aren't always available
+ Voici le graphe d'appel pour cette fonction :

◆ getErrorName()

getErrorName (   $int)

Retrieves a localised error name.

Paramètres
int$interror number, corresponding to PHP's error reporting
Renvoie
string localised message
+ Voici le graphe d'appel pour cette fonction :

◆ getMessage()

getMessage (   $key)

Retrieves a localised message.

Paramètres
string$keystring identifier of message
Renvoie
string localised message
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ listify()

listify (   $array)

Converts an array list into a string readable representation

Paramètres
array$array
Renvoie
string
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ load()

load ( )

Loads language object with necessary info from factory cache

Note
This is a lazy loader
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

Documentation des champs

◆ $_loaded

$_loaded = false

Has the language object been loaded yet? @type bool

A faire:
Make it private, fix usage in HTMLPurifier_LanguageTest

◆ $code

$code = 'en'

ISO 639 language code of language. Prefers shortest possible version. @type string

◆ $config

$config
protected

◆ $context

$context
protected

◆ $error

$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

$errorNames = array()

Array of localizable error codes. @type array

◆ $fallback

$fallback = false

Fallback language code. @type bool|string

◆ $messages

$messages = array()

Array of localizable messages. @type array


La documentation de cette classe a été générée à partir du fichier suivant :