Class to create a zip file.
| package |
jelix |
|---|---|
| subpackage |
utils |
| link |
Official ZIP file format |
_addCentralDirEntry( $name, $info, $isDir = false)
_getDOSTimeFormat( $timestamp)
addContentFile(string $zipFileName, string $content, integer $filetime)
stringthe path of the file into the zip archive
stringthe content of the file
integerthe time modification of the file
addDir(string $path, string $zipDirPath = '', boolean $recursive = false)
| Throws |
|
|---|
stringthe path of the physical directory you want to add
string
boolean
addEmptyDir( $name, $time)
getContent() : string
stringthe content of the zip file
fileRecords : array
| var |
|---|
array
centralDirectory : array
| var |
|---|
array
centralDirOffset : integer
| var |
|---|
integer