RE: [PEAR-DEV] general questions
| From: | Richard Heyes | Date: | Wed, 28 Nov 2001 19:15:18 +0000 |
| Subject: | RE: [PEAR-DEV] general questions | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3154@lists.php.net to get a copy of this message | ||
> I still don't quite get the usage of "::" ..
> As far as I understand this is for so called static functions and to
> generate a new namespace ...
>
> So far so good
> But why do stuff like DB::connect ?
> Why not put stuff like that in a constructor?
Because DB::connect() can return you a correct object type (ie mysql/pgsql).
--
Richard Heyes
"If you have any trouble sounding condescending,
find a Unix user to show you how it's done." - Scott Adams