Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_ChildDef_Required Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_Required:
HTMLPurifier_ChildDef HTMLPurifier_ChildDef_Optional HTMLPurifier_ChildDef_StrictBlockquote

Public Member Functions

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

Public Attributes

 $allow_empty = false
 @type bool
 
 $elements = array()
 Lookup table of allowed elements.
 
 $type = 'required'
 @type string
 

Protected Attributes

 $whitespace = false
 Whether or not the last passed node was all whitespace.
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ChildDef_Required::__construct ( $elements)
Parameters
array | string$elementsList of allowed element names (lowercase).

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_Required::validateChildren ( $children,
$config,
$context )
Parameters
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
array

Reimplemented from HTMLPurifier_ChildDef.

Reimplemented in HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.

Member Data Documentation

◆ $elements

HTMLPurifier_ChildDef_Required::$elements = array()

Lookup table of allowed elements.

@type array

◆ $whitespace

HTMLPurifier_ChildDef_Required::$whitespace = false
protected

Whether or not the last passed node was all whitespace.

@type bool


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