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

Private Methoden

 _mergeAssocArray (&$a1, $a2)
 

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

_mergeAssocArray ( $a1,
  $a2 
)
private

Merges one array into another, removes values which equal false

Parameter
$a1Array by reference that is merged into
$a2Array that merges into $a1

Definiert in Zeile 202 der Datei ElementDef.php.

Wird benutzt von mergeIn().

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

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

Low-level factory constructor for creating new standalone element defs

Definiert in Zeile 138 der Datei ElementDef.php.

Benutzt $attr, $content_model und $content_model_type.

Wird benutzt von HTMLPurifier_HTMLModule\addElement().

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.

Parameter
HTMLPurifier_ElementDef$def

Definiert in Zeile 153 der Datei ElementDef.php.

Benutzt _mergeAssocArray().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Dokumentation der Datenelemente

$attr = array()

Associative array of attribute name to HTMLPurifier_AttrDef. array

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 32 der Datei ElementDef.php.

Wird benutzt von create().

$attr_transform_post = array()

List of tags HTMLPurifier_AttrTransform to be done after validation. array

Definiert in Zeile 56 der Datei ElementDef.php.

$attr_transform_pre = array()

List of tags HTMLPurifier_AttrTransform to be done before validation. array

Definiert in Zeile 50 der Datei ElementDef.php.

$autoclose = array()

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

Definiert in Zeile 118 der Datei ElementDef.php.

$child

HTMLPurifier_ChildDef of this tag. HTMLPurifier_ChildDef

Definiert in Zeile 62 der Datei ElementDef.php.

$content_model

Abstract string representation of internal ChildDef rules.

Siehe auch
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 string

Definiert in Zeile 72 der Datei ElementDef.php.

Wird benutzt von create().

$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 string

Definiert in Zeile 82 der Datei ElementDef.php.

Wird benutzt von create().

$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. bool

Definiert in Zeile 91 der Datei ElementDef.php.

$excludes = array()

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

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 112 der Datei ElementDef.php.

$formatting

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

Definiert in Zeile 133 der Datei ElementDef.php.

$required_attr = array()

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

Definiert in Zeile 98 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? bool

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

Definiert in Zeile 126 der Datei ElementDef.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.