Class HTMLPurifier_ElementDef

Description

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

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

Located in /library/HTMLPurifier/ElementDef.php (line 9)


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

Associative array of attribute name to HTMLPurifier_AttrDef

Associative array of attribute name to HTMLPurifier_AttrDef

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

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

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

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

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

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

  • access: public
mixed $child (line 44)

HTMLPurifier_ChildDef of this tag.

HTMLPurifier_ChildDef of this tag.

  • access: public
mixed $content_model (line 53)

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

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 62)

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

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 72)

Does the element have a content model (#PCDATA | Inline)*? This is important for chameleon ins and del processing in HTMLPurifier_ChildDef_Chameleon. have to worry about this one.

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 91)

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

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

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

List of the names of required attributes this element has.

List of the names of required attributes this element has. Dynamically populated by HTMLPurifier_HTMLDefinition::getElement

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

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

Does the definition work by itself, or is it created solely for the purpose of merging into another definition?

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

Low-level factory constructor for creating new standalone element defs

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 109)

Merges the values of another element definition into this one.

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 Thu, 19 Jun 2008 18:49:06 -0400 by phpDocumentor 1.4.2