note 56464 added to ref.simplexml
| From: | galaxiaguy at hotmail dot com | Date: | Sat, 03 Sep 2005 14:52:25 +0000 |
| Subject: | note 56464 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94695@lists.php.net to get a copy of this message | ||
I tried extending SimpleXMLElement to add some functionality and found you can't set new
properties. I assume this is something to do with built-in magic methods or something.
So I wrote a class that behaves the same as SimpleXMLElement (by delegating most of it's work)
but is arbitrarily extendable.
http://www.oliverbrown.me.uk/2005/09/03/extending-simplexml/
It's very new and not very well tested but could be useful to somebody.
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56464
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56464&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56464&report=yes
Search -- http://master.php.net/manage/user-notes.php