note 86156 deleted from language.oop5.patterns by danbrown
| From: | danbrown@php.net | Date: | Sun, 23 Jan 2011 16:36:19 +0000 |
| Subject: | note 86156 deleted from language.oop5.patterns by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176094@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
The "red-neck singleton" presented by wbcarts is not a singleton, but a presentation of
static class members.
Static members are shared by every instance of that class, and as such should work precisely as he
describes using them.
Singleton pattern is used to ensure that there only ever exists one instance of the singleton class.