|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| mergeIn ($def) | |
Static Public Member Functions | |
| static | create ($content_model, $content_model_type, $attr) |
Data Fields | |
| $standalone = true | |
| $attr = array() | |
| $attr_transform_pre = array() | |
| $attr_transform_post = array() | |
| $child | |
| $content_model | |
| $content_model_type | |
| $descendants_are_inline = false | |
| $required_attr = array() | |
| $excludes = array() | |
| $autoclose = array() | |
| $wrap | |
| $formatting | |
Structure that stores an HTML element definition. Used by HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule.
Definition at line 11 of file ElementDef.php.
| static create | ( | $ | content_model, |
| $ | content_model_type, | ||
| $ | attr | ||
| ) | [static] |
Low-level factory constructor for creating new standalone element defs
Definition at line 116 of file ElementDef.php.

| 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.
Definition at line 129 of file ElementDef.php.
| $attr = array() |
Associative array of attribute name to HTMLPurifier_AttrDef
Definition at line 31 of file ElementDef.php.
| $attr_transform_post = array() |
Indexed list of tag's HTMLPurifier_AttrTransform to be done after validation
Definition at line 41 of file ElementDef.php.
| $attr_transform_pre = array() |
Indexed list of tag's HTMLPurifier_AttrTransform to be done before validation
Definition at line 36 of file ElementDef.php.
| $autoclose = array() |
This tag is explicitly auto-closed by the following tags.
Definition at line 98 of file ElementDef.php.
| $child |
HTMLPurifier_ChildDef of this tag.
Definition at line 46 of file ElementDef.php.
| $content_model |
Abstract string representation of internal ChildDef rules. See HTMLPurifier_ContentSets for how this is parsed and then transformed into an HTMLPurifier_ChildDef.
Definition at line 55 of file ElementDef.php.
| $content_model_type |
Value of $child->type, used to determine which ChildDef to use, used in combination with $content_model.
Definition at line 64 of file ElementDef.php.
| $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.
Definition at line 74 of file ElementDef.php.
| $excludes = array() |
Lookup table of tags excluded from all descendants of this tag.
Definition at line 93 of file ElementDef.php.
| $formatting |
Whether or not this is a formatting element affected by the "Active Formatting Elements" algorithm.
Definition at line 111 of file ElementDef.php.
| $required_attr = array() |
List of the names of required attributes this element has. Dynamically populated by HTMLPurifier_HTMLDefinition::getElement
Definition at line 80 of file ElementDef.php.
| $standalone = true |
Does the definition work by itself, or is it created solely for the purpose of merging into another definition?
Definition at line 18 of file ElementDef.php.
| $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.
Definition at line 105 of file ElementDef.php.