Posted by Oli Filth on 11/11/78 11:18
MrKrinkle said the following on 09/06/2005 20:38:
> I want to universally define the __call() method, so that every class
> in my application does the same thing if a non-existant function is
> called.
>
> In actionscript I could do this by adding the definition to the
> prototype for Object.
>
> Is there any way to do that in php 5? I could make every one of my
> classes inherit from like an Object class that I define, but that kind
> of sucks.
>
Hang on, you want to have a load of classes inherit a particular
behaviour, but you don't want to specify that they extend a base class
that defines this behaviour?? Why?
--
Oli
[Back to original message]
|