Re: [PHP] __call() and interfaces

2006-02-21 Thread David Tulloh
I find __call() to be a nasty solution, particularily from a self-documenting code point of view. I personally only use call when the function names are defined at run time; as you clearly know the function names, I would be implementing them as normal functions. If there is a lot of repeated cod

[PHP] __call() and interfaces

2006-02-21 Thread Mike Pfaff
Hello World :) I need to write a class that implements a predefined interface. In my class all(or most) methods will use the same code. At first i thought the ideal solution would be to handle this by defining the magic __call() method in my class, but PHP then complains about the interface n