Creating methods runtime
| From: | Mika Tuupola | Date: | Thu, 21 Feb 2002 10:03:50 +0000 |
| Subject: | Creating methods runtime | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85701@lists.php.net to get a copy of this message | ||
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/