note 96550 added to language.oop5.patterns

From: Date: Thu, 04 Mar 2010 15:40:54 +0000
Subject: note 96550 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-166662@lists.php.net to get a copy of this message
scottmattocks and the others: Even a nine year old child could tell that you are doind it wrong. Even if it's a girl... "Basically, subclassing and singletons don't really mix." Or you are just forgetting what exactly is a static peroperty, and how to deal with it... if (!isset(self::$instance[$classname])) { self::$instance[$classname] = new $classname; } No? Why in the nine hells it wouldn't work? ---- Server IP: 69.147.83.197 Probable Submitter: 89.133.46.146 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- https://master.php.net/note/edit/96550 Del: integrated -- https://master.php.net/note/delete/96550/integrated Del: useless -- https://master.php.net/note/delete/96550/useless Del: bad code -- https://master.php.net/note/delete/96550/bad+code Del: spam -- https://master.php.net/note/delete/96550/spam Del: non-english -- https://master.php.net/note/delete/96550/non-english Del: in docs -- https://master.php.net/note/delete/96550/in+docs Del: other reasons-- https://master.php.net/note/delete/96550 Reject -- https://master.php.net/note/reject/96550 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166662) next »