JArchiveZip
class JArchiveZip implements JArchiveExtractable
ZIP format adapter for the JArchive class
The ZIP compression code is partially based on code from: Eric Mueller eric@themepark.com http://www.zend.com/codex.php?id=535&single=1
Deins125 webmaster@atlant.ru http://www.zend.com/codex.php?id=470&single=1
The ZIP compression date code is partially based on code from Peter Listiak mlady@users.sourceforge.net
This class is inspired from and draws heavily in code and concept from the Compress package of The Horde Project https://www.horde.org
Methods
Create a ZIP compressed file from an array of file data.
Extract a ZIP compressed file to a given path
Tests whether this adapter can unpack files on this computer.
Method to determine if the server has native zip support for faster handling
Checks to see if the data is a valid ZIP file.
Details
boolean
create(
string $archive,
array $files)
Create a ZIP compressed file from an array of file data.
boolean
extract(
string $archive,
string $destination,
array $options = array())
Extract a ZIP compressed file to a given path