Class HTMLPurifier_ChildDef

Description

Defines allowed child nodes and validates tokens against it.

Defines allowed child nodes and validates tokens against it.

  • abstract:

Located in /library/HTMLPurifier/ChildDef.php (line 6)


	
			
Direct descendents
Class Description
HTMLPurifier_ChildDef_Chameleon Definition that uses different definitions depending on context.
HTMLPurifier_ChildDef_Custom Custom validation class, accepts DTD child definitions
HTMLPurifier_ChildDef_Empty Definition that disallows all elements.
HTMLPurifier_ChildDef_Required Definition that allows a set of elements, but disallows empty children.
HTMLPurifier_ChildDef_Table Definition for tables
Variable Summary
mixed $allow_empty
mixed $elements
mixed $type
Method Summary
bool validateChildren ($tokens_of_children $tokens_of_children, $config $config, $context $context)
Variables
mixed $allow_empty (line 20)

Bool that 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.

Bool that 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.

  • access: public

Redefined in descendants as:
mixed $elements = array() (line 25)

Lookup array of all elements that this definition could possibly allow

Lookup array of all elements that this definition could possibly allow

  • access: public

Redefined in descendants as:
mixed $type (line 12)

Type of child definition, usually right-most part of class name lowercase.

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

  • access: public

Redefined in descendants as:
Methods
validateChildren (line 37)

Validates nodes according to definition and returns modification.

Validates nodes according to definition and returns modification.

  • return: true to leave nodes as is
  • abstract:
  • access: public
bool validateChildren ($tokens_of_children $tokens_of_children, $config $config, $context $context)
  • $tokens_of_children $tokens_of_children: Array of HTMLPurifier_Token
  • $config $config: HTMLPurifier_Config object
  • $context $context: HTMLPurifier_Context object

Redefined in descendants as:

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