compress_zip
class compress_zip extends compress
Zip creation class from phpMyAdmin 2.3.0 (c) Tobias Ratschiller, Olivier Müller, Loïc Chapeaux, Marc Delisle, http://www.phpmyadmin.net/
Zip extraction function by Alexandre Tedeschi, alexandrebr at gmail dot com
Modified extensively by psoTFX and DavidMJ, (c) phpBB Limited, 2003
Based on work by Eric Mueller and Denis125 Official ZIP file format: http://www.pkware.com/appnote.txt
Properties
$fp | from compress | ||
protected array | $filelist | from compress | |
$datasec | |||
$ctrl_dir | |||
$eof_cdh | |||
$old_offset | |||
$datasec_len | |||
protected filesystem_interface | $filesystem |
Methods
Add file to archive
Checks if a file by that name as already been added and, if it has, returns a new, unique name.
Constructor
Convert unix to dos time
Extract archive
Close archive
Create the structures ... note we assume version made by is MSDOS
file
Download archive
Details
in
compress at line 37
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive
in
compress at line 107
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted)
in
compress at line 121
add_data($src, $name)
Add file data
in
compress at line 139
protected string
unique_filename(string $name)
Checks if a file by that name as already been added and, if it has, returns a new, unique name.
in
compress at line 167
static array
methods()
Return available methods
at line 213
__construct($mode, $file)
Constructor
at line 229
unix_to_dos_time($time)
Convert unix to dos time
at line 246
extract($dst)
Extract archive
at line 409
close()
Close archive
at line 422
data($name, $data, $stat, $is_dir = false)
Create the structures ... note we assume version made by is MSDOS
at line 509
file()
file
at line 524
download($filename, $download_name = false)
Download archive