note 96550 deleted from language.oop5.patterns by danbrown
| From: | danbrown@php.net | Date: | Thu, 04 Mar 2010 15:41:26 +0000 |
| Subject: | note 96550 deleted from language.oop5.patterns by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166663@lists.php.net to get a copy of this message | ||
Note Submitter: php_beginner
----
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?