Re: DB_NestedSet_MDB useless

From: Date: Tue, 01 Jul 2003 14:14:39 +0000
Subject: Re: DB_NestedSet_MDB useless
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17894@lists.php.net to get a copy of this message
Hans Lellelid wrote:
Sure :) I think I would too. I'll coordinate w/ Daniel. What's the PEAR standard for this -- ::getInstance() when there could be more than one instance (based on DSN) or ::singleton()? Horde uses singleton(), but I like getInstance() as being a little more intuitive to people that may not know the pattern name. I think getInstance() is a bit confusing, because "new" also gets you an instance, but it's not the same as a singleton. I'm afraid the singleton pattern is a bit hard to describe in one short method name.
A bit offtopic, but I'd like to know the difference between nested set and PEAR::Tree. Can someone elaborate on this please? Jeroen

« previous php.pear.dev (#17894) next »