XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_ChildDef_Optional Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_Optional:
Inheritance graph

Public Member Functions

 validateChildren ($tokens_of_children, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_ChildDef_Required
 __construct ($elements)
 
 validateChildren ($tokens_of_children, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_ChildDef
 getAllowedElements ($config)
 
 validateChildren ($tokens_of_children, $config, $context)
 

Public Attributes

 $allow_empty = true
 
 $type = 'optional'
 
- Public Attributes inherited from HTMLPurifier_ChildDef_Required
 $allow_empty = false
 
 $elements = array()
 
 $type = 'required'
 
- Public Attributes inherited from HTMLPurifier_ChildDef
 $allow_empty
 
 $elements = array()
 
 $type
 

Additional Inherited Members

- Protected Attributes inherited from HTMLPurifier_ChildDef_Required
 $whitespace = false
 

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 
)

Definition at line 14 of file Optional.php.

References $config, and $result.

Member Data Documentation

HTMLPurifier_ChildDef_Optional::$allow_empty = true

Definition at line 12 of file Optional.php.

HTMLPurifier_ChildDef_Optional::$type = 'optional'

Definition at line 13 of file Optional.php.


The documentation for this class was generated from the following file: