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

Fonctions membres publiques

 __construct ($modules)
 
 generateChildDef (&$def, $module)
 
 generateChildDefCallback ($matches)
 
 getChildDef ($def, $module)
 

Champs de données

 $info = array()
 
 $lookup = array()
 

Fonctions membres protégées

 convertToLookup ($string)
 

Attributs protégés

 $keys = array()
 
 $values = array()
 

Description détaillée

A faire:
Unit test

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $modules)

Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.

Paramètres
HTMLPurifier_HTMLModule[]$modulesList of HTMLPurifier_HTMLModule
+ Voici le graphe d'appel pour cette fonction :

Documentation des fonctions membres

◆ convertToLookup()

convertToLookup (   $string)
protected

Converts a string list of elements separated by pipes into a lookup array.

Paramètres
string$stringList of elements
Renvoie
array Lookup array of elements
+ Voici le graphe des appelants de cette fonction :

◆ generateChildDef()

generateChildDef ( $def,
  $module 
)

Accepts a definition; generates and assigns a ChildDef for it

Paramètres
HTMLPurifier_ElementDef$defHTMLPurifier_ElementDef reference
HTMLPurifier_HTMLModule$moduleModule that defined the ElementDef
+ Voici le graphe d'appel pour cette fonction :

◆ generateChildDefCallback()

generateChildDefCallback (   $matches)

◆ getChildDef()

getChildDef (   $def,
  $module 
)

Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef

Note
This will also defer to modules for custom HTMLPurifier_ChildDef subclasses that need content set expansion
Paramètres
HTMLPurifier_ElementDef$defHTMLPurifier_ElementDef to have ChildDef extracted
HTMLPurifier_HTMLModule$moduleModule that defined the ElementDef
Renvoie
HTMLPurifier_ChildDef corresponding to ElementDef
+ Voici le graphe des appelants de cette fonction :

Documentation des champs

◆ $info

$info = array()

List of content set strings (pipe separators) indexed by name. @type array

◆ $keys

$keys = array()
protected

Synchronized list of defined content sets (keys of info). @type array

◆ $lookup

$lookup = array()

List of content set lookups (element => true) indexed by name. @type array

Note
This is in HTMLPurifier_HTMLDefinition->info_content_sets

◆ $values

$values = array()
protected

Synchronized list of defined content values (values of info). @type array


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