ILIAS  Release_4_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 ($tokens_of_children, $config, $context)
 Validates nodes according to definition and returns modification.
- 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
 $type = 'empty'
- Data Fields inherited from HTMLPurifier_ChildDef
 $type
 Type of child definition, usually right-most part of class name lowercase.
 $allow_empty
 Bool that 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 14 of file Empty.php.

{}

Member Function Documentation

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

Validates nodes according to definition and returns modification.

Parameters
$tokens_of_childrenArray of HTMLPurifier_Token
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns
bool true to leave nodes as is
bool false to remove parent node
array of replacement child tokens

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 15 of file Empty.php.

{
return array();
}

Field Documentation

HTMLPurifier_ChildDef_Empty::$allow_empty = true

Definition at line 12 of file Empty.php.

HTMLPurifier_ChildDef_Empty::$type = 'empty'

Definition at line 13 of file Empty.php.


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