Documentation

Zip
in package

Table of Contents

$fileCount  : int
$pathToZip  : string
$zipFile  : ZipArchive
__construct()  : mixed
add()  : Zip
close()  : mixed
count()  : int
createForManifest()  : self
humanReadableSize()  : string
open()  : mixed
path()  : string
size()  : int
determineNameOfFileInZip()  : mixed

Properties

$fileCount

protected int $fileCount = 0

$pathToZip

protected string $pathToZip

$zipFile

protected ZipArchive $zipFile

Methods

__construct()

public __construct(string $pathToZip) : mixed
Parameters
$pathToZip : string
Return values
mixed

add()

public add(string|array<string|int, mixed> $files[, string $nameInZip = null ]) : Zip
Parameters
$files : string|array<string|int, mixed>
$nameInZip : string = null
Return values
Zip

close()

public close() : mixed
Return values
mixed

count()

public count() : int
Return values
int

createForManifest()

public static createForManifest(Manifest $manifest, string $pathToZip) : self
Parameters
$manifest : Manifest
$pathToZip : string
Return values
self

humanReadableSize()

public humanReadableSize() : string
Return values
string

open()

public open() : mixed
Return values
mixed

path()

public path() : string
Return values
string

size()

public size() : int
Return values
int

determineNameOfFileInZip()

protected static determineNameOfFileInZip(string $pathToFile, string $pathToZip) : mixed
Parameters
$pathToFile : string
$pathToZip : string
Return values
mixed

Search results