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 | ||
| $datasec | ||
| $ctrl_dir | ||
| $eof_cdh | ||
| $old_offset | ||
| $datasec_len |
Methods
|
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive |
from compress | |
|
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted) |
from compress | |
|
add_data($src, $name)
Add file data |
from compress | |
| static array |
methods()
Return available methods |
from compress |
|
compress_zip($mode, $file)
Constructor |
||
|
unix_to_dos_time($time)
Convert unix to dos time |
||
|
extract($dst)
Extract archive |
||
|
close()
Close archive |
||
|
data($name, $data, $stat, $is_dir = false)
Create the structures ... |
||
|
file()
file |
||
|
download($filename, $download_name = false)
Download archive |
Details
in compress at line 37
public
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive
in compress at line 108
public
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted)
in compress at line 122
public
add_data($src, $name)
Add file data
in compress at line 168
static public array
methods()
Return available methods
at line 209
public
compress_zip($mode, $file)
Constructor
at line 222
public
unix_to_dos_time($time)
Convert unix to dos time
at line 239
public
extract($dst)
Extract archive
at line 386
public
close()
Close archive
at line 399
public
data($name, $data, $stat, $is_dir = false)
Create the structures ...
note we assume version made by is MSDOS
at line 486
public
file()
file
at line 501
public
download($filename, $download_name = false)
Download archive