note 61276 added to language.oop5.patterns

From: Date: Mon, 30 Jan 2006 04:39:19 +0000
Subject: note 61276 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-102705@lists.php.net to get a copy of this message
Singleton is a very useful pattern if you need multiple instances of different classes to use only one unique instance of common class. It's not just about having static methods. e.g. Your database connection class probably should be a singleton, in order to spare all redundant connect calls, etc... ---- Server IP: 216.235.15.211 Probable Submitter: 207.81.165.171 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61276 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61276&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61276&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102705) next »