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

Public Member Functions

 __construct ($inline, $block)
 
 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.
 
 $block
 Instance of the definition object to use when block.
 
 $elements = array()
 Lookup array of all elements that this definition could possibly allow.
 
 $inline
 Instance of the definition object to use when inline.
 
 $type = 'chameleon'
 @type string
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ChildDef_Chameleon::__construct ( $inline,
$block )
Parameters
array$inlineList of elements to allow when inline.
array$blockList of elements to allow when block.

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_Chameleon::validateChildren ( $children,
$config,
$context )
Parameters
HTMLPurifier_Node[]$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Return values
bool

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

◆ $block

HTMLPurifier_ChildDef_Chameleon::$block

Instance of the definition object to use when block.

@type HTMLPurifier_ChildDef_Optional

◆ $elements

HTMLPurifier_ChildDef::$elements = array()
inherited

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

@type array

◆ $inline

HTMLPurifier_ChildDef_Chameleon::$inline

Instance of the definition object to use when inline.

Usually stricter. @type HTMLPurifier_ChildDef_Optional


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