\Pop\Archive\AdapterZip

Zip archive adapter class

Summary

Methods
Properties
Constants
__construct()
archive()
extract()
addFiles()
addDir()
listFiles()
getDirs()
No public properties found
No constants found
buildTree()
$archive
$path
$workingDir
N/A
No private methods found
No private properties found
N/A

Properties

$archive

$archive : \ZipArchive

ZipArchive object

Type

\ZipArchive

$path

$path : string

Archive path

Type

string

$workingDir

$workingDir : string

Working directory

Type

string

Methods

archive()

archive() : mixed

Return the archive object

Returns

mixed

extract()

extract(string  $to = null) : void

Extract an archived and/or compressed file

Parameters

string $to

addFiles()

addFiles(string|array  $files) : void

Create an archive file

Parameters

string|array $files

addDir()

addDir(array  $branch, string  $level = null, string  $orig = null) : void

Create sub directories within the zip archive

Parameters

array $branch
string $level
string $orig

listFiles()

listFiles(boolean  $full = false) : array

Return a listing of the contents of an archived file

Parameters

boolean $full

Returns

array

getDirs()

getDirs() : array

Return an array of all the directories in the archive

Returns

array

buildTree()

buildTree(\DirectoryIterator  $it) : array

Build the directory tree

Parameters

\DirectoryIterator $it

Returns

array