Re: [PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-20 Thread Karel Kozlik
Hello, thanks for the hint. It looks nice. Where could I learn more about $class::$method() syntax? I was not successfull when searching in php manual. Btw. is it an intended behaviour that $class::$method() works in this way? I mean that I would pressume that method is called in static

Re: [PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-20 Thread Jochem Maas
Karel Kozlik schreef: Hello, thanks for the hint. It looks nice. Where could I learn more about $class::$method() syntax? I was not successfull when searching in php manual. er, dunno - I picked it up on the internals mailing list I think, you might wnat to search that. Btw. is it an

Re: [PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-20 Thread Karel Kozlik
But there still remains two issues: 1. How to pass arguments to method? The number of arguments is different for each method. So is the only way to construct a string containing the arguments and use eval()? Or is there an another way? then use call_user_func() and/or call_user_func_array()

Re: [PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-20 Thread Jochem Maas
Karel Kozlik schreef: But there still remains two issues: 1. How to pass arguments to method? The number of arguments is different for each method. So is the only way to construct a string containing the arguments and use eval()? Or is there an another way? then use call_user_func() and/or

[PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-19 Thread Karel Kozlik
Hello list! I am using in my application dynamic method appending to class with aggregate_methods() function. But this function is no more aviable in php5 and runkit extension seems not to be maintained any more. So I would like to replace it with something more common (__call method or so).

Re: [PHP] dynamicaly append method to class - workaround for aggregate_methods()

2009-03-19 Thread Jochem Maas
Karel Kozlik schreef: Hello list! I am using in my application dynamic method appending to class with aggregate_methods() function. But this function is no more aviable in php5 and runkit extension seems not to be maintained any more. So I would like to replace it with something more