Documentation

ZipService
in package

Table of Contents

Constants

FILE_EXTENSION  = 'zip'

Methods

addFileFromString()  : bool
closeZip()  : bool
createZip()  : ZipArchive
download()  : mixed

Constants

FILE_EXTENSION

public mixed FILE_EXTENSION = 'zip'

Methods

addFileFromString()

public addFileFromString(ZipArchive &$zip, string $localName, string $contents) : bool
Parameters
$zip : ZipArchive
$localName : string
$contents : string
Return values
bool

closeZip()

public closeZip(ZipArchive &$zipFile) : bool
Parameters
$zipFile : ZipArchive
Return values
bool

createZip()

public createZip(string $filename) : ZipArchive
Parameters
$filename : string
Tags
throws
Exception
Return values
ZipArchive

download()

public download(ZipArchive &$zipArchive, string $filename) : mixed
Parameters
$zipArchive : ZipArchive
$filename : string

        
On this page

Search results