Re: Re: new overloading feature?
| From: | Lukas Smith | Date: | Thu, 12 May 2005 20:39:15 +0000 |
| Subject: | Re: Re: new overloading feature? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16233@lists.php.net to get a copy of this message | ||
Thomas Richter wrote:
Lukas Smith wrote:that works if you store the class name for every child of the parent class into a static property. the problem is that unless you copy paste, maintain the class name in a static property for every child class you have a problem. both options seem to be rather clumsy and un-OOP. so it would be nice to have some way of getting the class name that is being called upon statically. regards, Lukascall_user_func(array($name,"Factory")); ??FYI: SingletonFactory can be a pure static class.yes it just doesnt work if you normally already use a factory ..because then you cant do $name::factory();