Class HTMLPurifier_ChildDef_Chameleon

Description

Definition that uses different definitions depending on context.

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.

Located in /library/HTMLPurifier/ChildDef/Chameleon.php (line 12)

HTMLPurifier_ChildDef
   |
   --HTMLPurifier_ChildDef_Chameleon
Variable Summary
mixed $block
mixed $inline
mixed $type
Method Summary
HTMLPurifier_ChildDef_Chameleon __construct ($inline $inline, $block $block)
void validateChildren ( $tokens_of_children,  $config,  $context)
Variables
mixed $block (line 23)

Instance of the definition object to use when block.

Instance of the definition object to use when block.

  • access: public
mixed $inline (line 18)

Instance of the definition object to use when inline.

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

  • access: public
mixed $type = 'chameleon' (line 25)
  • access: public

Redefinition of:
HTMLPurifier_ChildDef::$type
Type of child definition, usually right-most part of class name lowercase.

Inherited Variables

Inherited from HTMLPurifier_ChildDef

HTMLPurifier_ChildDef::$allow_empty
HTMLPurifier_ChildDef::$elements
Methods
Constructor __construct (line 31)
  • access: public
HTMLPurifier_ChildDef_Chameleon __construct ($inline $inline, $block $block)
  • $inline $inline: List of elements to allow when inline.
  • $block $block: List of elements to allow when block.
validateChildren (line 37)
  • access: public
void validateChildren ( $tokens_of_children,  $config,  $context)
  • $tokens_of_children
  • $config
  • $context

Redefinition of:
HTMLPurifier_ChildDef::validateChildren()
Validates nodes according to definition and returns modification.

Inherited Methods

Inherited From HTMLPurifier_ChildDef

HTMLPurifier_ChildDef::validateChildren()

Documentation generated on Thu, 19 Jun 2008 18:48:55 -0400 by phpDocumentor 1.4.2