Table of Contents
Constants
-
FILE_EXTENSION
= 'zip'
Methods
-
addFileFromString()
: bool
-
closeZip()
: bool
-
createZip()
: ZipArchive
-
download()
: mixed
FILE_EXTENSION
public
mixed
FILE_EXTENSION
= 'zip'
addFileFromString()
public
addFileFromString(ZipArchive &$zip, string $localName, string $contents) : bool
Parameters
-
$zip
: ZipArchive
-
-
$localName
: string
-
-
$contents
: string
-
closeZip()
public
closeZip(ZipArchive &$zipFile) : bool
Parameters
-
$zipFile
: ZipArchive
-
createZip()
public
createZip(string $filename) : ZipArchive
Parameters
-
$filename
: string
-
-
throws
-
Exception
download()
public
download(ZipArchive &$zipArchive, string $filename) : mixed
Parameters
-
$zipArchive
: ZipArchive
-
-
$filename
: string
-