API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_ChildDef_Optional Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_Optional:
Collaboration diagram for HTMLPurifier_ChildDef_Optional:

Public Member Functions

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

Data Fields

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

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.

Member Function Documentation

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
Parameters
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Reimplemented from HTMLPurifier_ChildDef_Required.

Field Documentation

◆ $allow_empty

$allow_empty = true

@type bool

◆ $type

$type = 'optional'

@type string


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