ZIP_LIST
ZIP_LIST
Return file list.
The Horde_Compress_zip class allows ZIP files to be created and read.
compress(array $data, array $params = array()) : mixed
Compresses the data.
array | $data | The data to compress. Requires an array of arrays. Each subarray should contain these fields:
|
array | $params | The parameter array.
|
The ZIP file as either a string or a stream resource.
compressDirectory(string $directory, array $params = array()) : mixed
Compresses a directory.
string | $directory | The directory to recursively compress. |
array | $params | An array of arguments needed to compress the data. |
The compressed data.
decompress(mixed $data, array $params = array()) : mixed
Decompresses the data.
mixed | $data | The data to decompress. |
array | $params | The parameter array.
|
If action is self::ZIP_DATA, the uncompressed data. If action is self::ZIP_LIST, an array with the KEY as the position in the zipfile and these values:
_getZipData(string $data, array $info, integer $key) : string
Returns the data for a specific archived file.
string | $data | The zip archive contents. |
array | $info | The information array from _getZipInfo(). |
integer | $key | The position of the file in the archive. |
The file data.
_unix2DOSTime(integer $unixtime = null) : integer
Converts a UNIX timestamp to a 4-byte DOS date and time format (date in high 2-bytes, time in low 2-bytes allowing magnitude comparison).
integer | $unixtime | The current UNIX timestamp. |
The current date in a 4-byte DOS format.