Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Public Member Functions | |
mergeIn ($def) | |
Merges the values of another element definition into this one. | |
Static Public Member Functions | |
static | create ($content_model, $content_model_type, $attr) |
Low-level factory constructor for creating new standalone element defs. | |
Public Attributes | |
$attr = array() | |
Associative array of attribute name to HTMLPurifier_AttrDef. | |
$attr_transform_post = array() | |
List of tags HTMLPurifier_AttrTransform to be done after validation. | |
$attr_transform_pre = array() | |
List of tags HTMLPurifier_AttrTransform to be done before validation. | |
$autoclose = array() | |
This tag is explicitly auto-closed by the following tags. | |
$child | |
HTMLPurifier_ChildDef of this tag. | |
$content_model | |
Abstract string representation of internal ChildDef rules. | |
$content_model_type | |
Value of $child->type, used to determine which ChildDef to use, used in combination with $content_model. | |
$descendants_are_inline = false | |
Does the element have a content model (#PCDATA | Inline)*? This is important for chameleon ins and del processing in HTMLPurifier_ChildDef_Chameleon. | |
$excludes = array() | |
Lookup table of tags excluded from all descendants of this tag. | |
$formatting | |
Whether or not this is a formatting element affected by the "Active Formatting Elements" algorithm. | |
$required_attr = array() | |
List of the names of required attributes this element has. | |
$standalone = true | |
Does the definition work by itself, or is it created solely for the purpose of merging into another definition? @type bool. | |
$wrap | |
If a foreign element is found in this element, test if it is allowed by this sub-element; if it is, instead of closing the current element, place it inside this element. | |
HTMLPurifier_ElementDef::mergeIn | ( | $def | ) |
Merges the values of another element definition into this one.
Values from the new element def take precedence if a value is not mergeable.
HTMLPurifier_ElementDef | $def |
HTMLPurifier_ElementDef::$attr = array() |
Associative array of attribute name to HTMLPurifier_AttrDef.
@type array
HTMLPurifier_ElementDef::$attr_transform_post = array() |
List of tags HTMLPurifier_AttrTransform to be done after validation.
@type array
HTMLPurifier_ElementDef::$attr_transform_pre = array() |
List of tags HTMLPurifier_AttrTransform to be done before validation.
@type array
HTMLPurifier_ElementDef::$autoclose = array() |
This tag is explicitly auto-closed by the following tags.
@type array
HTMLPurifier_ElementDef::$child |
HTMLPurifier_ChildDef of this tag.
@type HTMLPurifier_ChildDef
HTMLPurifier_ElementDef::$content_model |
Abstract string representation of internal ChildDef rules.
HTMLPurifier_ElementDef::$content_model_type |
Value of $child->type, used to determine which ChildDef to use, used in combination with $content_model.
HTMLPurifier_ElementDef::$descendants_are_inline = false |
Does the element have a content model (#PCDATA | Inline)*? This is important for chameleon ins and del processing in HTMLPurifier_ChildDef_Chameleon.
Dynamically set: modules don't have to worry about this one. @type bool
HTMLPurifier_ElementDef::$excludes = array() |
Lookup table of tags excluded from all descendants of this tag.
@type array
HTMLPurifier_ElementDef::$formatting |
Whether or not this is a formatting element affected by the "Active Formatting Elements" algorithm.
@type bool
HTMLPurifier_ElementDef::$required_attr = array() |
List of the names of required attributes this element has.
Dynamically populated by HTMLPurifier_HTMLDefinition\getElement() @type array
HTMLPurifier_ElementDef::$wrap |
If a foreign element is found in this element, test if it is allowed by this sub-element; if it is, instead of closing the current element, place it inside this element.
@type string