note 77957 deleted from domdocument.registernodeclass by bjori

From: Date: Tue, 28 Oct 2008 09:26:36 +0000
Subject: note 77957 deleted from domdocument.registernodeclass by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145856@lists.php.net to get a copy of this message
Note Submitter: mjong at magnafacta dot com ---- If you want to implement your own DOMDocument class you have to register your new document class. Otherwise $node->ownerDocument will return an object of the type DOMDocument without your extra features. I.e.: public function __construct($version = "1.0", $encoding = "UTF-8") { parent::__construct($version, $encoding); parent::registerNodeClass('DOMDocument', get_class($this)); }

« previous php.notes (#145856) next »