note 86156 added to language.oop5.patterns

From: Date: Mon, 06 Oct 2008 09:38:11 +0000
Subject: note 86156 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-145084@lists.php.net to get a copy of this message
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

« previous php.notes (#145084) next »