Re: general questions
| From: | John Lim | Date: | Thu, 29 Nov 2001 18:10:00 +0000 |
| Subject: | Re: general questions | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3197@lists.php.net to get a copy of this message | ||
Hi Lukas
Actually DB::connect does reside inside the DB class.
Factory is just a common OOP term for a static function that
returns an object based on the function parameters.
You are supposed to think of the function as an assembly line
which takes parameters and builds an object based on the params.
John
>
> I guess you are right ... so a factory is not supposed to reside in side
> the class it is "producing" for? Why?
>
> Lukas Smith
> smith@dybnet.de
> _______________________________
> DybNet Internet Solutions GbR
> Alt Moabit 89
> 10559 Berlin
> Tel. : +49 30 83 22 50 00
> Fax : +49 30 83 22 50 07
> www.dybnet.de info@dybnet.de
> _______________________________
>