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

Fonctions membres publiques

 __construct ($inline, $block)
 
 validateChildren ($children, $config, $context)
 
- Fonctions membres publiques hérités de HTMLPurifier_ChildDef
 getAllowedElements ($config)
 

Champs de données

 $inline
 
 $block
 
 $type = 'chameleon'
 
- Champs de données hérités de HTMLPurifier_ChildDef
 $type
 
 $allow_empty
 
 $elements = array()
 

Description détaillée

Definition that uses different definitions depending on context.

The del and ins tags are notable because they allow different types of elements depending on whether or not they're in a block or inline context. Chameleon allows this behavior to happen by using two different definitions depending on context. While this somewhat generalized, it is specifically intended for those two tags.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $inline,
  $block 
)
Paramètres
array$inlineList of elements to allow when inline.
array$blockList of elements to allow when block.

Documentation des fonctions membres

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
Paramètres
HTMLPurifier_Node[]$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Renvoie
bool

Réimplémentée à partir de HTMLPurifier_ChildDef.

Documentation des champs

◆ $block

$block

Instance of the definition object to use when block. @type HTMLPurifier_ChildDef_Optional

◆ $inline

$inline

Instance of the definition object to use when inline. Usually stricter. @type HTMLPurifier_ChildDef_Optional

◆ $type

$type = 'chameleon'

@type string


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