ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.

Data Fields

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

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

HTMLPurifier_ChildDef_Empty::__construct ( )

Definition at line 22 of file Empty.php.

{
}

Member Function Documentation

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

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 32 of file Empty.php.

{
return array();
}

Field Documentation

HTMLPurifier_ChildDef_Empty::$allow_empty = true

bool

Definition at line 15 of file Empty.php.

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: