DOMDocument->registerNodeClass()
(no version information, might be only in CVS)
DOMDocument->registerNodeClass() -- Register extended class used to create base node typeOpis
class DOMDocument {bool registerNodeClass ( string baseclass, string extendedclass )
}
This method allows you to register your own extended DOM class to be used afterward by the PHP DOM extension.
This method is not part of the DOM standard.
Parametry
baseclass
The DOM class that you want to extend. You can find a list of these classes in the chapter introduction.
Of course, you won't be able to register a class extending DOMDocument but you can always start your document by instanciating your own extending class.
extendedclass
Your extended class name. If NULL is provided, any previously registered class extending
baseclass
will be removed.
Przykłady
Poprzedni | Spis treści | Następny |
DOMDocument->normalizeDocument() | Początek rozdziału |