Re: [PHP] Creating methods runtime

2002-02-22 Thread Rasmus Lerdorf
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 runtim

[PHP] Creating methods runtime

2002-02-21 Thread Mika Tuupola
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. -- Mik