Re: Re: Extending DOMNode
| From: | Jochem Maas | Date: | Thu, 15 Feb 2007 16:45:52 +0000 |
| Subject: | Re: Re: Extending DOMNode | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248915@lists.php.net to get a copy of this message | ||
Eli wrote:
> Jochem Maas wrote:
>> maybe the runkit extension can help - no idea how big it might explode
>> in your
>> face if you try to hack the DOM* stuff with runkit :-)
>>
>> you never stated why you want to extend all the DOM classes, maybe there
>> is a different way of achieving what you want (i.e. without going
>> through the
>> hassle of what you seem to have to do at the moment)
>
> I want to add a common function to all nodes extended from DOMNode (e.g
> DOMElement, DOMText, DOMAttr, etc), and also keep the code maintainable
> so changing the common function will not force me to do in 10 places
why?
[I don't want to create a global function for this].
why not?
>
> -thanks!
>