On Mon, Nov 28, 2011 at 1:11 PM, Nikita Popov wrote:
> How would this be different from defining a function MyClass?
Actually, I just found myself wanting this the other day. The class
name in question was being defined in a config file, which the user
would be free to override with their own cla
How would this be different from defining a function MyClass?
Nikita
On Mon, Nov 28, 2011 at 9:02 PM, Dmitri Snytkine
wrote:
> I think __invokeStatic() would be a very useful magic function, especially
> with support for late static binding.
> you could difine it one and all sub-classes will hav
I think __invokeStatic() would be a very useful magic function, especially
with support for late static binding.
you could difine it one and all sub-classes will have that option of
basically being callable classes.
MyClass($params) could then do some processing and return some data.
This would b