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

Fonctions membres publiques

 getAllowedElements ($config)
 
 validateChildren ($children, $config, $context)
 

Champs de données

 $type
 
 $allow_empty
 
 $elements = array()
 

Description détaillée

Defines allowed child nodes and validates nodes against it.

Documentation des fonctions membres

◆ getAllowedElements()

getAllowedElements (   $config)

Get lookup of tag names that should not close this element automatically. All other elements will do so.

Paramètres
HTMLPurifier_Config$configHTMLPurifier_Config object
Renvoie
array

Réimplémentée dans HTMLPurifier_ChildDef_StrictBlockquote.

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
abstract

Validates nodes according to definition and returns modification.

Paramètres
HTMLPurifier_Node[]$childrenArray of HTMLPurifier_Node
HTMLPurifier_Config$configHTMLPurifier_Config object
HTMLPurifier_Context$contextHTMLPurifier_Context object
Renvoie
bool|array true to leave nodes as is, false to remove parent node, array of replacement children

Réimplémentée dans HTMLPurifier_ChildDef_Custom, HTMLPurifier_ChildDef_Table, HTMLPurifier_ChildDef_Required, HTMLPurifier_ChildDef_StrictBlockquote, HTMLPurifier_ChildDef_Chameleon, HTMLPurifier_ChildDef_Empty, HTMLPurifier_ChildDef_List, et HTMLPurifier_ChildDef_Optional.

Documentation des champs

◆ $allow_empty

$allow_empty

Indicates whether or not an empty array of children is okay.

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed. @type bool

◆ $elements

$elements = array()

Lookup array of all elements that this definition could possibly allow. @type array

◆ $type

$type

Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. @type string


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