Class HTMLPurifier_ElementDef

Description

Structure that stores an HTML element definition. Used by HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 2656)


	
			
Variable Summary
Method Summary
static void create ( $content_model,  $content_model_type,  $attr)
void mergeIn ( $def)
Variables
mixed $attr = array() (line 2676)

Associative array of attribute name to HTMLPurifier_AttrDef

  • access: public
mixed $attr_transform_post = array() (line 2686)

Indexed list of tag's HTMLPurifier_AttrTransform to be done after validation

  • access: public
mixed $attr_transform_pre = array() (line 2681)

Indexed list of tag's HTMLPurifier_AttrTransform to be done before validation

  • access: public
mixed $autoclose = array() (line 2743)

This tag is explicitly auto-closed by the following tags.

  • access: public
mixed $child (line 2691)

HTMLPurifier_ChildDef of this tag.

  • access: public
mixed $content_model (line 2700)

Abstract string representation of internal ChildDef rules. See HTMLPurifier_ContentSets for how this is parsed and then transformed into an HTMLPurifier_ChildDef.

  • access: public
mixed $content_model_type (line 2709)

Value of $child->type, used to determine which ChildDef to use, used in combination with $content_model.

  • access: public
mixed $descendants_are_inline = false (line 2719)

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.

  • access: public
mixed $excludes = array() (line 2738)

Lookup table of tags excluded from all descendants of this tag.

  • access: public
mixed $formatting (line 2756)

Whether or not this is a formatting element affected by the "Active Formatting Elements" algorithm.

  • access: public
mixed $required_attr = array() (line 2725)

List of the names of required attributes this element has. Dynamically

populated by HTMLPurifier_HTMLDefinition::getElement

  • access: public
mixed $standalone = true (line 2663)

Does the definition work by itself, or is it created solely

for the purpose of merging into another definition?

  • access: public
mixed $wrap (line 2750)

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.

  • access: public
Methods
static method create (line 2761)

Low-level factory constructor for creating new standalone element defs

  • access: public
static void create ( $content_model,  $content_model_type,  $attr)
  • $content_model
  • $content_model_type
  • $attr
mergeIn (line 2774)

Merges the values of another element definition into this one.

Values from the new element def take precedence if a value is not mergeable.

  • access: public
void mergeIn ( $def)
  • $def

Documentation generated on Sun, 06 Mar 2011 00:24:05 -0500 by phpDocumentor 1.4.3