Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
HTMLPurifier_ChildDef_Optional Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_Optional:
HTMLPurifier_ChildDef_Required 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 = true
 @type bool
 
 $elements = array()
 Lookup table of allowed elements.
 
 $type = 'optional'
 @type string
 

Protected Attributes

 $whitespace = false
 Whether or not the last passed node was all 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_Optional::validateChildren ( $children,
$config,
$context )
Parameters
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
array

Reimplemented from HTMLPurifier_ChildDef_Required.

Member Data Documentation

◆ $elements

HTMLPurifier_ChildDef_Required::$elements = array()
inherited

Lookup table of allowed elements.

@type array

◆ $whitespace

HTMLPurifier_ChildDef_Required::$whitespace = false
protectedinherited

Whether or not the last passed node was all whitespace.

@type bool


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