Re: Creating methods runtime
| From: | Rasmus Lerdorf | Date: | Fri, 22 Feb 2002 08:20:52 +0000 |
| Subject: | Re: Creating methods runtime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85829@lists.php.net to get a copy of this message | ||
You can sort of fake it using the call handler of the overload extension.
-Rasmus
On Thu, 21 Feb 2002, 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/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>