HTMLPurifier_ChildDef_Custom Class Reference

Custom validation class, accepts DTD child definitions. More...

List of all members.

Public Member Functions

 __construct ($dtd_regex)
 
Parameters:
$dtd_regex Allowed child pattern from the DTD

 validateChildren ($tokens_of_children, $config, $context)
 __construct ($dtd_regex)
 
Parameters:
$dtd_regex Allowed child pattern from the DTD

 validateChildren ($tokens_of_children, $config, $context)

Public Attributes

 $type = 'custom'
 $allow_empty = false
 $dtd_regex
 Allowed child pattern as defined by the DTD.

Protected Member Functions

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

Private Attributes

 $_pcre_regex
 PCRE regex derived from $dtd_regex.


Detailed Description

Custom validation class, accepts DTD child definitions.

Warning:
Currently this class is an all or nothing proposition, that is, it will only give a bool return value.
Note:
This class is currently not used by any code, although it is unit tested.

Definition at line 11 of file Custom.php.


Constructor & Destructor Documentation

HTMLPurifier_ChildDef_Custom::__construct ( dtd_regex  ) 

Parameters:
$dtd_regex Allowed child pattern from the DTD

Definition at line 27 of file Custom.php.

References $dtd_regex, and _compileRegex().

HTMLPurifier_ChildDef_Custom::__construct ( dtd_regex  ) 

Parameters:
$dtd_regex Allowed child pattern from the DTD

Definition at line 9617 of file HTMLPurifier.standalone.php.


Member Function Documentation

HTMLPurifier_ChildDef_Custom::_compileRegex (  )  [protected]

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

Definition at line 34 of file Custom.php.

Referenced by __construct().

HTMLPurifier_ChildDef_Custom::validateChildren ( tokens_of_children,
config,
context 
)

Definition at line 62 of file Custom.php.

HTMLPurifier_ChildDef_Custom::_compileRegex (  )  [protected]

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

Definition at line 9624 of file HTMLPurifier.standalone.php.

HTMLPurifier_ChildDef_Custom::validateChildren ( tokens_of_children,
config,
context 
)

Definition at line 9652 of file HTMLPurifier.standalone.php.


Member Data Documentation

HTMLPurifier_ChildDef_Custom::$type = 'custom'

Definition at line 13 of file Custom.php.

HTMLPurifier_ChildDef_Custom::$allow_empty = false

Definition at line 14 of file Custom.php.

HTMLPurifier_ChildDef_Custom::$dtd_regex

Allowed child pattern as defined by the DTD.

Definition at line 18 of file Custom.php.

Referenced by __construct().

HTMLPurifier_ChildDef_Custom::$_pcre_regex [private]

PCRE regex derived from $dtd_regex.

Definition at line 23 of file Custom.php.


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 18:47:29 2008 for HTMLPurifier by  doxygen 1.5.3