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

Fonctions membres publiques

 __construct ()
 
 registerModule ($module, $overload=false)
 
 addModule ($module)
 
 addPrefix ($prefix)
 
 setup ($config)
 
 processModule ($module)
 
 getElements ()
 
 getElement ($name, $trusted=null)
 

Champs de données

 $doctypes
 
 $doctype
 
 $attrTypes
 
 $modules = array()
 
 $registeredModules = array()
 
 $userModules = array()
 
 $elementLookup = array()
 
 $prefixes = array('HTMLPurifier_HTMLModule_')
 
 $contentSets
 
 $attrCollections
 
 $trusted = false
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Documentation des fonctions membres

◆ addModule()

addModule (   $module)

Adds a module to the current doctype by first registering it, and then tacking it on to the active doctype

+ Voici le graphe d'appel pour cette fonction :

◆ addPrefix()

addPrefix (   $prefix)

Adds a class prefix that registerModule() will use to resolve a string name to a concrete class

◆ getElement()

getElement (   $name,
  $trusted = null 
)

Retrieves a single merged element definition

Paramètres
string$nameName of element
bool$trustedBoolean trusted overriding parameter: set to true if you want the full version of an element
Renvoie
HTMLPurifier_ElementDef Merged HTMLPurifier_ElementDef
Note
You may notice that modules are getting iterated over twice (once in getElements() and once here). This is because
+ Voici le graphe des appelants de cette fonction :

◆ getElements()

getElements ( )

Retrieves merged element definitions.

Renvoie
Array of HTMLPurifier_ElementDef
+ Voici le graphe d'appel pour cette fonction :

◆ processModule()

processModule (   $module)

Takes a module and adds it to the active module collection, registering it if necessary.

+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ registerModule()

registerModule (   $module,
  $overload = false 
)

Registers a module to the recognized module list, useful for overloading pre-existing modules.

Paramètres
$moduleMixed: string module name, with or without HTMLPurifier_HTMLModule prefix, or instance of subclass of HTMLPurifier_HTMLModule.
$overloadBoolean whether or not to overload previous modules. If this is not set, and you do overload a module, HTML Purifier will complain with a warning.
Note
This function will not call autoload, you must instantiate (and thus invoke) autoload outside the method.
If a string is passed as a module name, different variants will be tested in this order:
  • Check for HTMLPurifier_HTMLModule_$name
  • Check all prefixes with $name in order they were added
  • Check for literal object name
  • Throw fatal error If your object name collides with an internal class, specify your module manually. All modules must have been included externally: registerModule will not perform inclusions for you!
+ Voici le graphe des appelants de cette fonction :

◆ setup()

setup (   $config)

Performs processing on modules, after being called you may use getElement() and getElements()

Paramètres
HTMLPurifier_Config$config
+ Voici le graphe d'appel pour cette fonction :

Documentation des champs

◆ $attrCollections

$attrCollections

◆ $attrTypes

$attrTypes

◆ $contentSets

$contentSets

◆ $doctype

$doctype

Instance of current doctype. @type string

◆ $doctypes

◆ $elementLookup

$elementLookup = array()

Associative array of element name to list of modules that have definitions for the element; this array is dynamically filled. @type array

◆ $modules

$modules = array()

Active instances of modules for the specified doctype are indexed, by name, in this array. @type HTMLPurifier_HTMLModule[]

◆ $prefixes

$prefixes = array('HTMLPurifier_HTMLModule_')

List of prefixes we should use for registering small names. @type array

◆ $registeredModules

$registeredModules = array()

Array of recognized HTMLPurifier_HTMLModule instances, indexed by module's class name. This array is usually lazy loaded, but a user can overload a module by pre-emptively registering it. @type HTMLPurifier_HTMLModule[]

◆ $trusted

$trusted = false

If set to true, unsafe elements and attributes will be allowed. @type bool

◆ $userModules

$userModules = array()

List of extra modules that were added by the user using addModule(). These get unconditionally merged into the current doctype, whatever it may be. @type HTMLPurifier_HTMLModule[]


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