ZipArchiver
extends Archiver
in package
Class ZipArchiver
Table of Contents
Properties
- $archive_file : string
- $options : array<string|int, mixed>
Methods
- addEmptyFolders() : $this
- compress() : $this
- create() : ZipArchiver
- extract() : $this
- setArchive() : $this
- setOptions() : $this
- getArchiveFiles() : RecursiveIteratorIterator
Properties
$archive_file
protected
string
$archive_file
$options
protected
array<string|int, mixed>
$options
= ['exclude_files' => ['.DS_Store'], 'exclude_paths' => []]
Methods
addEmptyFolders()
public
addEmptyFolders(array<string|int, mixed> $folders[, callable|null $status = null ]) : $this
Parameters
- $folders : array<string|int, mixed>
- $status : callable|null = null
Return values
$thiscompress()
public
compress(string $source[, callable|null $status = null ]) : $this
Parameters
- $source : string
- $status : callable|null = null
Return values
$thiscreate()
public
static create(string $compression) : ZipArchiver
Parameters
- $compression : string
Return values
ZipArchiverextract()
public
extract(string $destination[, callable|null $status = null ]) : $this
Parameters
- $destination : string
- $status : callable|null = null
Return values
$thissetArchive()
public
setArchive(string $archive_file) : $this
Parameters
- $archive_file : string
Return values
$thissetOptions()
public
setOptions(array<string|int, mixed> $options) : $this
Parameters
- $options : array<string|int, mixed>
Return values
$thisgetArchiveFiles()
protected
getArchiveFiles(string $rootPath) : RecursiveIteratorIterator
Parameters
- $rootPath : string