HTMLPurifier_ChildDef_Optional Klassenreferenz

Klassendiagramm für HTMLPurifier_ChildDef_Optional:

Inheritance graph
[Legende]
Zusammengehörigkeiten von HTMLPurifier_ChildDef_Optional:

Collaboration graph
[Legende]

Öffentliche Methoden

 validateChildren ($tokens_of_children, $config, $context)

Datenfelder

 $allow_empty = true
 $type = 'optional'

Ausführliche Beschreibung

Definition that allows a set of elements, and allows no children.
Zu beachten:
This is a hack to reuse code from HTMLPurifier_ChildDef_Required, really, one shouldn't inherit from the other. Only altered behavior is to overload a returned false with an array. Thus, it will never return false.

Definiert in Zeile 10 der Datei Optional.php.


Dokumentation der Elementfunktionen

validateChildren ( tokens_of_children,
config,
context 
)

Validates nodes according to definition and returns modification.

Parameter:
$tokens_of_children Array of HTMLPurifier_Token
$config HTMLPurifier_Config object
$context HTMLPurifier_Context object
Rückgabe:
bool true to leave nodes as is

bool false to remove parent node

array of replacement child tokens

Erneute Implementation von HTMLPurifier_ChildDef_Required.

Definiert in Zeile 14 der Datei Optional.php.


Dokumentation der Datenelemente

$allow_empty = true

Bool that indicates whether or not an empty array of children is okay

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.

Erneute Implementation von HTMLPurifier_ChildDef_Required.

Definiert in Zeile 12 der Datei Optional.php.

$type = 'optional'

Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context.

Erneute Implementation von HTMLPurifier_ChildDef_Required.

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