HTMLPurifier_ChildDef_Optional Class Reference

Definition that allows a set of elements, and allows no children. More...

Inheritance diagram for HTMLPurifier_ChildDef_Optional:

HTMLPurifier_ChildDef_Required HTMLPurifier_ChildDef_Required

List of all members.

Public Member Functions

 validateChildren ($tokens_of_children, $config, $context)
 validateChildren ($tokens_of_children, $config, $context)

Public Attributes

 $allow_empty = true
 $type = 'optional'


Detailed Description

Definition that allows a set of elements, and allows no children.

Note:
This is a hack to reuse code from HTMLPurifier_ChildDef_Required, really, one shouldn't inherit from the other. Only altered behavior is to overload a returned false with an array. Thus, it will never return false.

Definition at line 10 of file Optional.php.


Member Function Documentation

HTMLPurifier_ChildDef_Optional::validateChildren ( tokens_of_children,
config,
context 
)

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 14 of file Optional.php.

HTMLPurifier_ChildDef_Optional::validateChildren ( tokens_of_children,
config,
context 
)

Reimplemented from HTMLPurifier_ChildDef_Required.

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


Member Data Documentation

HTMLPurifier_ChildDef_Optional::$allow_empty = true

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 12 of file Optional.php.

HTMLPurifier_ChildDef_Optional::$type = 'optional'

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 13 of file Optional.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