XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
unix2DosTime ($unixtime=0) | |
addFile ($data, $name, $time=0) | |
file () | |
Data Fields | |
$datasec = [] | |
$ctrl_dir = [] | |
$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" | |
$old_offset = 0 | |
Definition at line 16 of file class.zipfile.php.
addFile | ( | $data, | |
$name, | |||
$time = 0 ) |
Adds "file" to archive
string | file contents |
string | name of the file in the archive (may contains the path) |
int | the current timestamp |
@access public
Definition at line 84 of file class.zipfile.php.
file | ( | ) |
Dumps out file
@access public
Definition at line 162 of file class.zipfile.php.
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).
int | the current Unix timestamp |
@access private
Definition at line 57 of file class.zipfile.php.
$ctrl_dir = [] |
Central directory
Definition at line 30 of file class.zipfile.php.
$datasec = [] |
Array to store compressed data
Definition at line 23 of file class.zipfile.php.
$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" |
End of central directory record
Definition at line 37 of file class.zipfile.php.
$old_offset = 0 |
Last offset position
Definition at line 44 of file class.zipfile.php.