Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56130 invoked by uid 1010); 12 May 2005 22:01:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21056 invoked from network); 12 May 2005 21:39:29 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 12 May 2005 21:39:29 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.4/2.6 Received: from ([212.112.227.169:55749] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 5B/B6-56821-11DC3824 for ; Thu, 12 May 2005 17:39:29 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 68C22DF015D; Thu, 12 May 2005 23:39:55 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15050-10; Thu, 12 May 2005 23:39:52 +0200 (CEST) Received: from [172.16.0.4] (unknown [201.134.187.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ipx11223.ipxserver.de (Postfix) with ESMTP id B5FEBDF00D8; Thu, 12 May 2005 23:39:51 +0200 (CEST) Message-ID: <4283BEF3.4050102@php.net> Date: Thu, 12 May 2005 16:39:15 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thomas Richter Cc: internals@lists.php.net References: <4qdcz84j.fsf@random.internal> <427FA67E.2020506@omniti.com> <427FC9D1.1030607@php.net> <4280AFD4.9080306@php.net> <4280CB8B.4050101@kmit.sk> <4280D806.4040108@php.net> <20050511093408.92010.qmail@lists.php.net> In-Reply-To: <20050511093408.92010.qmail@lists.php.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] Re: new overloading feature? From: lsmith@php.net (Lukas Smith) Thomas Richter wrote: > Lukas Smith wrote: > >>> 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(); > > > call_user_func(array($name,"Factory")); ?? 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, Lukas