Re: Package proposal: Unique
| From: | cagrET | Date: | Wed, 25 Jun 2003 15:51:04 +0000 |
| Subject: | Re: Package proposal: Unique | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17709@lists.php.net to get a copy of this message | ||
> Class:
>
> function &instance()
> {
> static $instance;
> return $instance;
> }
>
> Example:
>
> $Uniq =& Unique::instance();
>
> $Uniq will be null here, unless I'm missing something.
before calling instance() u call factory() so it will contain object
> Besides, in Unique::factory() method:
>
> $this->Db =& Db::instance();
>
> PEAR's DB class does not have an instance() method. Moral: the stuff was
*never*
> actually tested before being proposed here.
this is not PEAR's DB class
http://scg.milc.com.pl/cagret/mgcLib/Db/
i just proposed an idea
cheers,
--
cagrET