Documentation

Zip
in package
implements ArchiveDriver

Archive library zip driver.

Table of Contents

Interfaces

ArchiveDriver
Archive driver interface.

Properties

$dirs  : mixed
$file  : resource
$offset  : mixed

Methods

addData()  : void
Add data to the archive.
create()  : bool
Creates an archive and optionally, saves it to a file.
dateUnix2dos()  : mixed

Properties

$dirs

protected mixed $dirs = []

$file

protected resource $file

A resource handle to the destination zip file

$offset

protected mixed $offset = 0

Methods

addData()

Add data to the archive.

public addData(mixed $file, mixed $name[, mixed $contents = null ]) : void
Parameters
$file : mixed

Filename

$name : mixed

Name of file in archive

$contents : mixed = null

create()

Creates an archive and optionally, saves it to a file.

public create(mixed $paths[, mixed $filename = false ]) : bool
Parameters
$paths : mixed

Filenames to add

$filename : mixed = false

File to save the archive to

Return values
bool

dateUnix2dos()

private dateUnix2dos(mixed $timestamp) : mixed
Parameters
$timestamp : mixed
On this page

Search results