PHP Manual
DOMDocument->registerNodeClass()
(no version information, might be only in CVS)
DOMDocument->registerNodeClass() -- Register extended class used to create base node typeDescription
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.
Parameters
baseclassThe 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.
extendedclassYour extended class name. If NULL is provided, any previously registered class extending
baseclasswill be removed.
Examples
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




