Class HTMLPurifier_ChildDef_Custom

Description

Custom validation class, accepts DTD child definitions

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

HTMLPurifier_ChildDef
   |
   --HTMLPurifier_ChildDef_Custom
Variable Summary
mixed $allow_empty
mixed $dtd_regex
mixed $type
Method Summary
HTMLPurifier_ChildDef_Custom __construct ($dtd_regex $dtd_regex)
void validateChildren ( $tokens_of_children,  $config,  $context)
void _compileRegex ()
Variables
mixed $allow_empty = false (line 10549)
  • access: public

Redefinition of:
HTMLPurifier_ChildDef::$allow_empty
Bool that indicates whether or not an empty array of children is okay
mixed $dtd_regex (line 10553)

Allowed child pattern as defined by the DTD

  • access: public
mixed $type = 'custom' (line 10548)
  • 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::$elements
Methods
Constructor __construct (line 10562)
  • access: public
HTMLPurifier_ChildDef_Custom __construct ($dtd_regex $dtd_regex)
  • $dtd_regex $dtd_regex: Allowed child pattern from the DTD
validateChildren (line 10597)
  • 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.
_compileRegex (line 10569)

Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)

  • access: protected
void _compileRegex ()

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