Cheetah
|
Public Member Functions | |
unix2DosTime ($unixtime=0) | |
addFile ($data, $name, $time=0) | |
file () | |
Public Attributes | |
$datasec = array() | |
$ctrl_dir = array() | |
$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" | |
$old_offset = 0 | |
Zip file creation class. Makes zip files.
Based on :
http://www.zend.com/codex.php?id=535&single=1 By Eric Mueller eric@ them epark .com
http://www.zend.com/codex.php?id=470&single=1 by Denis125 webma ster @atla nt.r u
a patch from Peter Listiak mlady for last modified date and time of the compressed file @use rs.so urce forge .net
Official ZIP file format: http://www.pkware.com/appnote.txt
@access public
Definition at line 27 of file zip.lib.php.
zipfile::addFile | ( | $data, | |
$name, | |||
$time = 0 |
|||
) |
Adds "file" to archive
string | file contents |
string | name of the file in the archive (may contains the path) |
integer | the current timestamp |
@access public
Definition at line 94 of file zip.lib.php.
zipfile::file | ( | ) |
Dumps out file
@access public
Definition at line 173 of file zip.lib.php.
zipfile::unix2DosTime | ( | $unixtime = 0 | ) |
Converts an Unix timestamp to a four byte DOS date and time format (date in high two bytes, time in low two bytes allowing magnitude comparison).
integer | the current Unix timestamp |
@access private
Definition at line 68 of file zip.lib.php.
array zipfile::$ctrl_dir = array() |
Central directory
Definition at line 41 of file zip.lib.php.
array zipfile::$datasec = array() |
Array to store compressed data
Definition at line 34 of file zip.lib.php.
string zipfile::$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" |
End of central directory record
Definition at line 48 of file zip.lib.php.
integer zipfile::$old_offset = 0 |
Last offset position
Definition at line 55 of file zip.lib.php.