HTMLPurifier_DoctypeRegistry Klassenreferenz

HTMLPurifier_DoctypeRegistry Klassenreferenz

Öffentliche Methoden

 register ($doctype, $xml=true, $modules=array(), $tidy_modules=array(), $aliases=array(), $dtd_public=null, $dtd_system=null)
 
 get ($doctype)
 
 make ($config)
 
 getDoctypeFromConfig ($config)
 

Geschützte Attribute

 $doctypes
 
 $aliases
 

Ausführliche Beschreibung

Definiert in Zeile 3 der Datei DoctypeRegistry.php.

Dokumentation der Elementfunktionen

get (   $doctype)

Retrieves reference to a doctype of a certain name

Zu beachten
This function resolves aliases
When possible, use the more fully-featured make()
Parameter
string$doctypeName of doctype
Rückgabe
HTMLPurifier_Doctype Editable doctype object

Definiert in Zeile 83 der Datei DoctypeRegistry.php.

getDoctypeFromConfig (   $config)

Retrieves the doctype from the configuration object

Parameter
HTMLPurifier_Config$config
Rückgabe
string

Definiert in Zeile 116 der Datei DoctypeRegistry.php.

Wird benutzt von make().

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

make (   $config)

Creates a doctype based on a configuration object, will perform initialization on the doctype

Zu beachten
Use this function to get a copy of doctype that config can hold on to (this is necessary in order to tell Generator whether or not the current document is XML based or not).
Parameter
HTMLPurifier_Config$config
Rückgabe
HTMLPurifier_Doctype

Definiert in Zeile 106 der Datei DoctypeRegistry.php.

Benutzt getDoctypeFromConfig().

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

register (   $doctype,
  $xml = true,
  $modules = array(),
  $tidy_modules = array(),
  $aliases = array(),
  $dtd_public = null,
  $dtd_system = null 
)

Registers a doctype to the registry

Zu beachten
Accepts a fully-formed doctype object, or the parameters for constructing a doctype object
Parameter
string$doctypeName of doctype or literal doctype object
bool$xml
array$modulesModules doctype will load
array$tidy_modulesModules doctype will load for certain modes
array$aliasesAlias names for doctype
string$dtd_public
string$dtd_system
Rückgabe
HTMLPurifier_Doctype Editable registered doctype

Definiert in Zeile 31 der Datei DoctypeRegistry.php.

Benutzt $aliases.

Dokumentation der Datenelemente

$aliases
protected

Lookup table of aliases to real doctype names. array

Definiert in Zeile 16 der Datei DoctypeRegistry.php.

Wird benutzt von register().

$doctypes
protected

Hash of doctype names to doctype objects. array

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