singleton mathod name (do pear packages create their own seperate DB connections?)
| From: | Wolfram Kriesing | Date: | Wed, 23 Apr 2003 09:58:14 +0000 |
| Subject: | singleton mathod name (do pear packages create their own seperate DB connections?) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15375@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
2) make singleton optional: MDB::singleton($dsn, $options)am i right that PEAR defines the method, which gets you a singleton instance is called "singleton"? I am just asking to get a clear definition, since we are trying to make some common method names unique here, right? If there is no definition yet, i might suggest "getInstance", but that is just a personal preference. -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth