XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_LanguageFactory

Fonctions membres publiques

 setup ()
 
 create ($config, $context, $code=false)
 
 getFallbackFor ($code)
 
 loadLanguage ($code)
 

Fonctions membres publiques statiques

static instance ($prototype=null)
 

Champs de données

 $cache
 
 $keys = array('fallback', 'messages', 'errorNames')
 

Attributs protégés

 $validator
 
 $dir
 
 $mergeable_keys_map = array('messages' => true, 'errorNames' => true)
 
 $mergeable_keys_list = array()
 

Description détaillée

Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks.

Note
Thanks to MediaWiki for the general logic, although this version has been entirely rewritten
A faire:
Serialized cache for languages

Documentation des fonctions membres

◆ create()

create (   $config,
  $context,
  $code = false 
)

Creates a language object, handles class fallbacks

Paramètres
HTMLPurifier_Config$config
HTMLPurifier_Context$context
bool | string$codeCode to override configuration with. Private parameter.
Renvoie
HTMLPurifier_Language
+ Voici le graphe d'appel pour cette fonction :

◆ getFallbackFor()

getFallbackFor (   $code)

Returns the fallback language for language

Note
Loads the original language into cache
Paramètres
string$codelanguage code
Renvoie
string|bool
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ instance()

static instance (   $prototype = null)
static

Retrieve sole instance of the factory.

Paramètres
HTMLPurifier_LanguageFactory$prototypeOptional prototype to overload sole instance with, or bool true to reset to default factory.
Renvoie
HTMLPurifier_LanguageFactory
+ Voici le graphe des appelants de cette fonction :

◆ loadLanguage()

loadLanguage (   $code)

Loads language into the cache, handles message file and fallbacks

Paramètres
string$codelanguage code
+ Voici le graphe des appelants de cette fonction :

◆ setup()

setup ( )

Sets up the singleton, much like a constructor

Note
Prevents people from getting this outside of the singleton

Documentation des champs

◆ $cache

$cache

Cache of language code information used to load HTMLPurifier_Language objects. Structure is: $factory->cache[$language_code][$key] = $value @type array

◆ $dir

$dir
protected

Cached copy of dirname(FILE), directory of current file without trailing slash. @type string

◆ $keys

$keys = array('fallback', 'messages', 'errorNames')

Valid keys in the HTMLPurifier_Language object. Designates which variables to slurp out of a message file. @type array

◆ $mergeable_keys_list

$mergeable_keys_list = array()
protected

Keys whose contents are a list and can be merged. @value array lookup

◆ $mergeable_keys_map

$mergeable_keys_map = array('messages' => true, 'errorNames' => true)
protected

Keys whose contents are a hash map and can be merged. @type array

◆ $validator

$validator
protected

Instance to validate language codes. @type HTMLPurifier_AttrDef_Lang


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