ZipComponent
extends Injectable
Table of Contents
Properties
-
$container
: mixed
-
$filename
: mixed
-
$path
: mixed
Methods
-
addFile()
: mixed
-
download()
: mixed
-
get()
: mixed
-
removeFile()
: mixed
-
changeFilename()
: mixed
-
createArchive()
: mixed
-
getIds()
: mixed
-
getPath()
: mixed
$container
protected
mixed
$container
= []
$filename
protected
mixed
$filename
= null
$path
private
mixed
$path
= STORAGE . 'archives' . DS
addFile()
public
addFile(FileComponent $file, int $id) : mixed
Parameters
-
$file
: FileComponent
-
-
$id
: int
-
download()
public
download([string $http_status = '' ][, array<string|int, mixed> $notification = [] ]) : mixed
Parameters
-
$http_status
: string
= ''
-
-
$notification
: array<string|int, mixed>
= []
-
get()
public
get() : mixed
removeFile()
public
removeFile(int $id) : mixed
Parameters
-
$id
: int
-
changeFilename()
private
changeFilename() : mixed
createArchive()
private
createArchive() : mixed
getIds()
private
getIds([mixed $implode = null ]) : mixed
Parameters
-
$implode
: mixed
= null
-
getPath()
private
getPath() : mixed