HumHub Documentation (unofficial)

HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef
in package

Definition that disallows all elements.

Tags
warning

validateChildren() in this class is actually never called, because empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed before child definitions are parsed in earnest by HTMLPurifier_Strategy_FixNesting.

Table of Contents

Properties

$allow_empty  : mixed
Indicates whether or not an empty array of children is okay.
$elements  : mixed
Lookup array of all elements that this definition could possibly allow.
$type  : mixed
Type of child definition, usually right-most part of class name lowercase.

Methods

__construct()  : mixed
getAllowedElements()  : array<string|int, mixed>
Get lookup of tag names that should not close this element automatically.
validateChildren()  : array<string|int, mixed>
Validates nodes according to definition and returns modification.

Properties

$allow_empty

Indicates whether or not an empty array of children is okay.

public mixed $allow_empty = \true
Tags
type

bool

$elements

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

public mixed $elements = array()
Tags
type

array

$type

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

public mixed $type = 'empty'
Tags
type

string

Methods

__construct()

public __construct() : mixed

getAllowedElements()

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

public getAllowedElements(HTMLPurifier_Config $config) : array<string|int, mixed>

All other elements will do so.

Parameters
$config : HTMLPurifier_Config

HTMLPurifier_Config object

Return values
array<string|int, mixed>

        
On this page

Search results