HTMLPurifier 4.4.0
HTMLPurifier_ChildDef_List Class Reference

Definition for list containers ul and ol. More...

Inheritance diagram for HTMLPurifier_ChildDef_List:
HTMLPurifier_ChildDef HTMLPurifier_ChildDef

List of all members.

Public Member Functions

 validateChildren ($tokens_of_children, $config, $context)
 Validates nodes according to definition and returns modification.
 validateChildren ($tokens_of_children, $config, $context)
 Validates nodes according to definition and returns modification.

Public Attributes

 $type = 'list'
 Type of child definition, usually right-most part of class name lowercase.
 $elements = array('li' => true, 'ul' => true, 'ol' => true)
 Lookup array of all elements that this definition could possibly allow.

Detailed Description

Definition for list containers ul and ol.

Definition at line 6 of file List.php.


Member Function Documentation

HTMLPurifier_ChildDef_List::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 12 of file List.php.

HTMLPurifier_ChildDef_List::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 11475 of file HTMLPurifier.standalone.php.


Member Data Documentation

HTMLPurifier_ChildDef_List::$elements = array('li' => true, 'ul' => true, 'ol' => true)

Lookup array of all elements that this definition could possibly allow.

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 11 of file List.php.

HTMLPurifier_ChildDef_List::$type = 'list'

Type of child definition, usually right-most part of class name lowercase.

Used occasionally in terms of context.

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 8 of file List.php.


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