Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_ChildDef_List Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_List:
HTMLPurifier_ChildDef

Public Member Functions

 getAllowedElements ($config)
 Get lookup of tag names that should not close this element automatically.
 
 validateChildren ($children, $config, $context)
 

Public Attributes

 $allow_empty
 Indicates whether or not an empty array of children is okay.
 
 $elements = array('li' => true, 'ul' => true, 'ol' => true)
 @type array
 
 $type = 'list'
 @type string
 
 $whitespace
 

Member Function Documentation

◆ getAllowedElements()

HTMLPurifier_ChildDef::getAllowedElements ( $config)
inherited

Get lookup of tag names that should not close this element automatically.

All other elements will do so.

Parameters
HTMLPurifier_Config$configHTMLPurifier_Config object
Return values
array

Reimplemented in HTMLPurifier_ChildDef_StrictBlockquote.

◆ validateChildren()

HTMLPurifier_ChildDef_List::validateChildren ( $children,
$config,
$context )
Parameters
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
array

Reimplemented from HTMLPurifier_ChildDef.

Member Data Documentation

◆ $allow_empty

HTMLPurifier_ChildDef::$allow_empty
inherited

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. @type bool


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