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

Public Member Functions

 getAllowedElements ($config)
 
 validateChildren ($tokens_of_children, $config, $context)
 

Public Attributes

 $allow_empty
 
 $elements = array()
 
 $type
 

Detailed Description

Defines allowed child nodes and validates tokens against it.

Definition at line 6 of file ChildDef.php.

Member Function Documentation

HTMLPurifier_ChildDef::getAllowedElements (   $config)

Get lookup of tag names that should not close this element automatically. All other elements will do so.

Definition at line 31 of file ChildDef.php.

References $elements.

HTMLPurifier_ChildDef::validateChildren (   $tokens_of_children,
  $config,
  $context 
)
abstract

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

Member Data Documentation

HTMLPurifier_ChildDef::$allow_empty

Bool that indicates whether or not an empty array of children is okay

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.

Definition at line 20 of file ChildDef.php.

HTMLPurifier_ChildDef::$elements = array()

Lookup array of all elements that this definition could possibly allow

Definition at line 25 of file ChildDef.php.

Referenced by getAllowedElements().

HTMLPurifier_ChildDef::$type

Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context.

Definition at line 12 of file ChildDef.php.


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