ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
HTMLPurifier_ChildDef_Empty Class Reference

Definition that disallows all elements. More...

+ Inheritance diagram for HTMLPurifier_ChildDef_Empty:
+ Collaboration diagram for HTMLPurifier_ChildDef_Empty:

Public Member Functions

 __construct ()
 
 validateChildren ($children, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_ChildDef
 getAllowedElements ($config)
 Get lookup of tag names that should not close this element automatically. More...
 
 validateChildren ($children, $config, $context)
 Validates nodes according to definition and returns modification. More...
 

Data Fields

 $allow_empty = true
 bool More...
 
 $type = 'empty'
 string More...
 
- Data Fields inherited from HTMLPurifier_ChildDef
 $type
 Type of child definition, usually right-most part of class name lowercase. More...
 
 $allow_empty
 Indicates whether or not an empty array of children is okay. More...
 
 $elements = array()
 Lookup array of all elements that this definition could possibly allow. More...
 

Detailed Description

Definition that disallows all elements.

Warning
validateChildren() in this class is actually never called, because empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed before child definitions are parsed in earnest by HTMLPurifier_Strategy_FixNesting.

Definition at line 10 of file Empty.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ChildDef_Empty::__construct ( )

Definition at line 22 of file Empty.php.

23  {
24  }

Member Function Documentation

◆ validateChildren()

HTMLPurifier_ChildDef_Empty::validateChildren (   $children,
  $config,
  $context 
)
Parameters
HTMLPurifier_Node[]$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Definition at line 32 of file Empty.php.

33  {
34  return array();
35  }

Field Documentation

◆ $allow_empty

HTMLPurifier_ChildDef_Empty::$allow_empty = true

bool

Definition at line 15 of file Empty.php.

◆ $type

HTMLPurifier_ChildDef_Empty::$type = 'empty'

string

Definition at line 20 of file Empty.php.


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