HTMLPurifier_ChildDef_Custom Klassenreferenz

Klassendiagramm für HTMLPurifier_ChildDef_Custom:

Inheritance graph
[Legende]
Zusammengehörigkeiten von HTMLPurifier_ChildDef_Custom:

Collaboration graph
[Legende]

Öffentliche Methoden

 __construct ($dtd_regex)
 validateChildren ($tokens_of_children, $config, $context)

Datenfelder

 $type = 'custom'
 $allow_empty = false
 $dtd_regex

Geschützte Methoden

 _compileRegex ()

Ausführliche Beschreibung

Custom validation class, accepts DTD child definitions

Warnung:
Currently this class is an all or nothing proposition, that is, it will only give a bool return value.

Definiert in Zeile 9 der Datei Custom.php.


Beschreibung der Konstruktoren und Destruktoren

__construct ( dtd_regex  ) 

Parameter:
$dtd_regex Allowed child pattern from the DTD

Definiert in Zeile 25 der Datei Custom.php.

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


Dokumentation der Elementfunktionen

_compileRegex (  )  [protected]

Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)

Definiert in Zeile 32 der Datei Custom.php.

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

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 60 der Datei Custom.php.


Dokumentation der Datenelemente

$allow_empty = false

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.

Definiert in Zeile 12 der Datei Custom.php.

$dtd_regex

Allowed child pattern as defined by the DTD

Definiert in Zeile 16 der Datei Custom.php.

$type = 'custom'

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 11 der Datei Custom.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