HTMLPurifier_ChildDef_Chameleon Klassenreferenz

Klassendiagramm für HTMLPurifier_ChildDef_Chameleon:

Inheritance graph
[Legende]
Zusammengehörigkeiten von HTMLPurifier_ChildDef_Chameleon:

Collaboration graph
[Legende]

Öffentliche Methoden

 __construct ($inline, $block)
 validateChildren ($tokens_of_children, $config, $context)

Datenfelder

 $inline
 $block
 $type = 'chameleon'

Ausführliche Beschreibung

Definition that uses different definitions depending on context.

The del and ins tags are notable because they allow different types of elements depending on whether or not they're in a block or inline context. Chameleon allows this behavior to happen by using two different definitions depending on context. While this somewhat generalized, it is specifically intended for those two tags.

Definiert in Zeile 12 der Datei Chameleon.php.


Beschreibung der Konstruktoren und Destruktoren

__construct ( inline,
block 
)

Parameter:
$inline List of elements to allow when inline.
$block List of elements to allow when block.

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

Definiert in Zeile 37 der Datei Chameleon.php.


Dokumentation der Datenelemente

$block

Instance of the definition object to use when block.

Definiert in Zeile 23 der Datei Chameleon.php.

$inline

Instance of the definition object to use when inline. Usually stricter.

Definiert in Zeile 18 der Datei Chameleon.php.

$type = 'chameleon'

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

Erneute Implementation von HTMLPurifier_ChildDef.

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