note 98805 added to language.oop5.patterns

From: Date: Thu, 08 Jul 2010 17:11:26 +0000
Subject: note 98805 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-170800@lists.php.net to get a copy of this message
The singleton paradigm presented above operates correctly in the context of the execution/request, it will not *automatically* maintain state (as may be the case with Java) between different script executions/requests. Feel free to use sessions along with serialize()/unserialize() and __sleep()/__wakeup() to maintain state for you singleton (and other) classes. ---- Server IP: 69.147.83.197 Probable Submitter: 77.49.104.222 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- https://master.php.net/note/edit/98805 Del: integrated -- https://master.php.net/note/delete/98805/integrated Del: useless -- https://master.php.net/note/delete/98805/useless Del: bad code -- https://master.php.net/note/delete/98805/bad+code Del: spam -- https://master.php.net/note/delete/98805/spam Del: non-english -- https://master.php.net/note/delete/98805/non-english Del: in docs -- https://master.php.net/note/delete/98805/in+docs Del: other reasons-- https://master.php.net/note/delete/98805 Reject -- https://master.php.net/note/reject/98805 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170800) next »