Class HTMLPurifier_ChildDef_Required

Description

Definition that allows a set of elements, but disallows empty children.

Definition that allows a set of elements, but disallows empty children.

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

HTMLPurifier_ChildDef
   |
   --HTMLPurifier_ChildDef_Required
Direct descendents
Class Description
HTMLPurifier_ChildDef_Optional Definition that allows a set of elements, and allows no children.
HTMLPurifier_ChildDef_StrictBlockquote Takes the contents of blockquote when in strict and reformats for validation.
Variable Summary
mixed $allow_empty
mixed $elements
mixed $type
Method Summary
HTMLPurifier_ChildDef_Required __construct ($elements $elements)
void validateChildren ( $tokens_of_children,  $config,  $context)
Variables
mixed $allow_empty = false (line 31)
  • access: public

Redefinition of:
HTMLPurifier_ChildDef::$allow_empty
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.

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

Lookup table of allowed elements.

Lookup table of allowed elements.

  • public:
  • access: public

Redefinition of:
HTMLPurifier_ChildDef::$elements
Lookup array of all elements that this definition could possibly allow
mixed $type = 'required' (line 32)
  • access: public

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

Redefined in descendants as:
Methods
Constructor __construct (line 16)
  • access: public
HTMLPurifier_ChildDef_Required __construct ($elements $elements)
  • $elements $elements: List of allowed element names (lowercase).
validateChildren (line 33)
  • 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.

Redefined in descendants as:

Inherited Methods

Inherited From HTMLPurifier_ChildDef

HTMLPurifier_ChildDef::validateChildren()

Documentation generated on Thu, 19 Jun 2008 18:50:16 -0400 by phpDocumentor 1.4.2