Re: Creating methods runtime
| From: | Matthew J Gray | Date: | Thu, 21 Feb 2002 17:46:25 +0000 |
| Subject: | Re: Creating methods runtime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85756@lists.php.net to get a copy of this message | ||
No there really isn't. I wrote an extension that does it for me, but
I am waiting to see what the second zend engine will have for this
rather that using my hack. Maybe check the Zend Engine 2 mailing list
to see what the future may hold.
Matt
Mika Tuupola wrote:
>
> Is there a way to create/add methods runtime to a class via
> constructor or static factory method? I know it is possible
> to create functions runtime using eval() or create_function()
> but I havent been able to make them appear as methods for
> a class.
>
> --
> Mika Tuupola
> http://www.appelsiini.net/~tuupola/