XOOPS 2.5.6
Final
|
Public Member Functions | |
addFile ($data, $name, $time=0) | |
file () | |
unix2DosTime ($unixtime=0) | |
Public Attributes | |
$ctrl_dir = array() | |
$datasec = array() | |
$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" | |
$old_offset = 0 | |
Definition at line 32 of file class.zipfile.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 public |
Definition at line 91 of file class.zipfile.php.
References $time, and unix2DosTime().
zipfile::file | ( | ) |
Dumps out file
Definition at line 155 of file class.zipfile.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 |
Definition at line 70 of file class.zipfile.php.
Referenced by addFile().
array zipfile::$ctrl_dir = array() |
Central directory
Definition at line 46 of file class.zipfile.php.
array zipfile::$datasec = array() |
Array to store compressed data
Definition at line 39 of file class.zipfile.php.
string zipfile::$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" |
End of central directory record
Definition at line 53 of file class.zipfile.php.
integer zipfile::$old_offset = 0 |
Last offset position
Definition at line 60 of file class.zipfile.php.