HTMLPurifier_ElementDef Klassenreferenz


Öffentliche Methoden

 mergeIn ($def)

Öffentliche, statische Methoden

static create ($content_model, $content_model_type, $attr)

Datenfelder

 $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()
 $formatting

Ausführliche Beschreibung

Structure that stores an HTML element definition. Used by HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule.
Zu beachten:
This class is inspected by HTMLPurifier_Printer_HTMLDefinition. Please update that class too.
Warnung:
If you add new properties to this class, you MUST update the mergeIn() method.

Definiert in Zeile 11 der Datei ElementDef.php.


Dokumentation der Elementfunktionen

static create ( content_model,
content_model_type,
attr 
) [static]

Low-level factory constructor for creating new standalone element defs

Definiert in Zeile 109 der Datei ElementDef.php.

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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.

Definiert in Zeile 122 der Datei ElementDef.php.


Dokumentation der Datenelemente

$attr = array()

Associative array of attribute name to HTMLPurifier_AttrDef

Zu beachten:
Before being processed by HTMLPurifier_AttrCollections when modules are finalized during HTMLPurifier_HTMLDefinition->setup(), this array may also contain an array at index 0 that indicates which attribute collections to load into the full array. It may also contain string indentifiers in lieu of HTMLPurifier_AttrDef, see HTMLPurifier_AttrTypes on how they are expanded during HTMLPurifier_HTMLDefinition->setup() processing.

Definiert in Zeile 31 der Datei ElementDef.php.

$attr_transform_post = array()

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

Definiert in Zeile 41 der Datei ElementDef.php.

$attr_transform_pre = array()

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

Definiert in Zeile 36 der Datei ElementDef.php.

$autoclose = array()

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

Definiert in Zeile 98 der Datei ElementDef.php.

$child

HTMLPurifier_ChildDef of this tag.

Definiert in Zeile 46 der Datei 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.

Warnung:
This is a temporary variable that is not available after being processed by HTMLDefinition

Definiert in Zeile 55 der Datei ElementDef.php.

$content_model_type

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

Warnung:
This must be lowercase

This is a temporary variable that is not available after being processed by HTMLDefinition

Definiert in Zeile 64 der Datei 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.

Definiert in Zeile 74 der Datei ElementDef.php.

$excludes = array()

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

Zu beachten:
SGML permits exclusions for all descendants, but this is not possible with DTDs or XML Schemas. W3C has elected to use complicated compositions of content_models to simulate exclusion for children, but we go the simpler, SGML-style route of flat-out exclusions, which correctly apply to all descendants and not just children. Note that the XHTML Modularization Abstract Modules are blithely unaware of such distinctions.

Definiert in Zeile 93 der Datei ElementDef.php.

$formatting

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

Definiert in Zeile 104 der Datei ElementDef.php.

$required_attr = array()

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

Definiert in Zeile 80 der Datei ElementDef.php.

$standalone = true

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

Definiert in Zeile 18 der Datei ElementDef.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen