Re[6]: [PHP-PEAR] Merging PHPLIB into PEAR
| From: | Max A. Derkachev | Date: | Fri, 19 Jan 2001 17:48:02 +0000 |
| Subject: | Re[6]: [PHP-PEAR] Merging PHPLIB into PEAR | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1066@lists.php.net to get a copy of this message | ||
Hello Chuck,
Friday, January 19, 2001, 7:53:53 PM, you wrote:
>> Yes, if you mean that methods of PHPLib classes are underscore with _
>> as delimiters in names, not java-style PEAR class methods names.
CH> No, I mean that instead of having a Session:: class with a factory method
CH> (Session::factory()) that creates objects of any session type, saving you from
CH> hardcoding class names, there is CT_sql, CT_foo, CT_bar, and you need to
CH> subclass one of them and specify that name somewhere in your app to use it -
CH> and none of them are related to the Session class, which they could inherit
CH> from.
The idea of the factory is indeed great and it should be implemented,
since it won't break a backward compatibility. That's the porting work
for :)
--
Best regards,
Max A. Derkachev mailto:kot@books.ru
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia