Re: Package Proposal : Archive_Zip
| From: | Jan Schneider | Date: | Thu, 04 Sep 2003 08:54:37 +0000 |
| Subject: | Re: Package Proposal : Archive_Zip | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21046@lists.php.net to get a copy of this message | ||
Zitat von Stefan Neufeind <stefan@neufeind.net>:
> On 4 Sep 2003 at 9:32, Alexander Merz wrote:
>
> > Vincent Blavet wrote:
> >
> > > Any feedback is still welcome,
> > What about an unified Archive-API?
> >
> > Archive::create()
> > Archive::read()
> > Archive::addFile()
> > Archive::listFiles()
> > ...
> >
> > The type of archive could be detected by file ending.
>
> Or by a factory-method? I wouldn't use the file-ending as the only
> step to determine the archive-type. We should also provide a "manual"
> way of selecting the compression.
>
> But yes, I like the idea. Maybe we could demand that every archive-
> package provides certain functions (like Java's "implements"-
> directive)? Don't know if this is possible for all archives - maybe
> Vincent or somebody can judge better. But it would be interesting to
> be that flexible, in my eyes.
No, I don't propose a Horde library this time. ;-) Our "archive" libs are
not that complete because only the ZIP driver allows compressing, but you
might get some inspiration from them:
http://cvs.horde.org/co.php/horde/lib/Compress.php
http://cvs.horde.org/cvs.php/horde/lib/Compress
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft