abstract |
---|
Defines allowed child nodes and validates nodes against it.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
getAllowedElements(HTMLPurifier_Config $config): array
Get lookup of tag names that should not close this element automatically.
All other elements will do so.
Get lookup of tag names that should not close this element automatically. All other elements will do so. Parameters
Overriden by |
# | ||||||
abstract
public
|
validateChildren(HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|array
Validates nodes according to definition and returns modification.
Validates nodes according to definition and returns modification. Parameters
Returnstrue to leave nodes as is, false to remove parent node, array of replacement children Implemented by |
# |
Properties | |||
---|---|---|---|
public
|
|
$type
Type of child definition, usually right-most part of class name lowercase.
Used occasionally in terms of context.
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |
# |
public
|
|
$allow_empty
Indicates whether or not an empty array of children is okay.
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. |
# |
public
|
|
$elements = []
Lookup array of all elements that this definition could possibly allow.
Lookup array of all elements that this definition could possibly allow. |
# |