Re: Package Proposal : Archive_Zip

From: Date: Thu, 04 Sep 2003 08:21:22 +0000
Subject: Re: Package Proposal : Archive_Zip
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21044@lists.php.net to get a copy of this message
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. Stefan

« previous php.pear.dev (#21044) next »