ZipCreationHelper
in package
implements
ArchiveHelperInterface
Class ZipCreationHelper
Interfaces, Classes and Traits
- ArchiveHelperInterface
- Interface ArchiveHelperInterface
Table of Contents
- $zip : ZipArchive
- $directory : string
- $dirInZipName : string
- __construct() : mixed
- ZipCreationHelper constructor.
- createArchive() : string
- addFilesFromDirectoryToZip() : void
Properties
$zip
protected
ZipArchive
$zip
$directory
private
string
$directory
$dirInZipName
private
string
$dirInZipName
Methods
__construct()
ZipCreationHelper constructor.
public
__construct(string $directory, string $dirInZipName) : mixed
Parameters
- $directory : string
- $dirInZipName : string
Return values
mixed —createArchive()
public
createArchive() : string
Return values
string —addFilesFromDirectoryToZip()
protected
addFilesFromDirectoryToZip() : void