Class HTMLPurifier_ChildDef_Required

Description

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

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 10655)

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
mixed $whitespace
Method Summary
HTMLPurifier_ChildDef_Required __construct ($elements $elements)
void validateChildren ( $tokens_of_children,  $config,  $context)
Variables
mixed $allow_empty = false (line 10684)
  • access: public

Redefinition of:
HTMLPurifier_ChildDef::$allow_empty
Bool that indicates whether or not an empty array of children is okay

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

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 10685)
  • access: public

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

Redefined in descendants as:
mixed $whitespace = false (line 10665)

Whether or not the last passed node was all whitespace.

  • access: protected
Methods
Constructor __construct (line 10669)
  • access: public
HTMLPurifier_ChildDef_Required __construct ($elements $elements)
  • $elements $elements: List of allowed element names (lowercase).
validateChildren (line 10686)
  • 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::getAllowedElements()
HTMLPurifier_ChildDef::validateChildren()

Documentation generated on Sun, 06 Mar 2011 00:24:01 -0500 by phpDocumentor 1.4.3