Re: Net_FTP design issues
| From: | Tobias Schlitt | Date: | Thu, 14 Oct 2004 16:48:27 +0000 |
| Subject: | Re: Net_FTP design issues | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33855@lists.php.net to get a copy of this message | ||
Hi Paul M Jones!
On 10/14/2004 09:51 AM you wrote:
I would favor the OO approach, but that's just me. I'm afraid I don't understand the procedural argument; you could, for example, give the OO version static methods that can be called like plain functions (Net_FTP::connect() and so on). Then you have the best of both worlds.The benefit of a procedural version would be, that users who do not have (for whatever reason, eg. restrictive provider,....) the FTP ext, can just run scripts depending on it, as if it was there. The general Net_FTP class is OO and will then fall back to the socket code. Regards, Toby -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info Like to say "thank you"? - http://pear.php.net/wishlist.php/toby