LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Anonymous@osu1.php.net Date: Mon Oct 6 03:38:11 2008 Subject: note 86156 added to language.oop5.patterns
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. ---- Server IP: 62.237.7.3 Probable Submitter: 88.112.53.246 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- https://master.php.net/note/edit/86156 Del: integrated -- https://master.php.net/note/delete/86156/integrated Del: useless -- https://master.php.net/note/delete/86156/useless Del: bad code -- https://master.php.net/note/delete/86156/bad+code Del: spam -- https://master.php.net/note/delete/86156/spam Del: non-english -- https://master.php.net/note/delete/86156/non-english Del: in docs -- https://master.php.net/note/delete/86156/in+docs Del: other reasons-- https://master.php.net/note/delete/86156 Reject -- https://master.php.net/note/reject/86156 Search -- https://master.php.net/manage/user-notes.php
| Navigate in group php.notes at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |