Re: Change "pOOcl" name
| From: | Vincent Lascaux | Date: | Sun, 06 Feb 2005 22:14:43 +0000 |
| Subject: | Re: Change "pOOcl" name | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35985@lists.php.net to get a copy of this message | ||
> File/
> Archive.php //File_Archive (a factory for File_Archive_$type?)
> Archive/
> Gzip.php //File_Archive_Gzip
> Bz2.php //File_Archive_Bz2
> Zip.php //File_Archive_Zip
> Tar.php //File_Archive_Tar
> Writer.php //File_Archive_Writer (Factory for below?)
> Writer/
> Mail.php //File_Archive_Writer_Mail
> HTTP.php //File_Archive_Writer_HTTP
> FTP.php //File_Archive_Writer_FTP (doesn't exist, it should)
OK, I worked on something similar. It's available here :
http://poocl.la-grotte.org/downloads.php
(Version PEAR).
You can look here for an example : http://poocl.la-grotte.org/example.phps
I dont really like the long names of the classes and the fact that you need
to include a lot of files. Maybe a factory would help.
I'm not sure what is the best way to implement it (since the different
objects don't have the same constructor parameters).
--
Vincent