PHP Class Pop\Archive\Adapter\Zip

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Archive\Adapter\ArchiveInterface
Afficher le fichier Open project: nicksagona/PopPHP

Protected Properties

Свойство Type Description
$archive ZipArchive ZipArchive object
$path string Archive path
$workingDir string Working directory

Méthodes publiques

Méthode Description
__construct ( Archive $archive ) : Zip Method to instantiate an archive adapter object
addDir ( array $branch, string $level = null, string $orig = null ) : void Method to create sub directories within the zip archive
addFiles ( string | array $files ) : void Method to create an archive file
archive ( ) : mixed Method to return the archive object
extract ( string $to = null ) : void Method to extract an archived and/or compressed file
getDirs ( ) : array Method to return an array of all the directories in the archive
listFiles ( boolean $full = false ) : array Method to return a listing of the contents of an archived file

Method Details

__construct() public méthode

Method to instantiate an archive adapter object
public __construct ( Archive $archive ) : Zip
$archive Pop\Archive\Archive
Résultat Zip

addDir() public méthode

Method to create sub directories within the zip archive
public addDir ( array $branch, string $level = null, string $orig = null ) : void
$branch array
$level string
$orig string
Résultat void

addFiles() public méthode

Method to create an archive file
public addFiles ( string | array $files ) : void
$files string | array
Résultat void

archive() public méthode

Method to return the archive object
public archive ( ) : mixed
Résultat mixed

extract() public méthode

Method to extract an archived and/or compressed file
public extract ( string $to = null ) : void
$to string
Résultat void

getDirs() public méthode

Method to return an array of all the directories in the archive
public getDirs ( ) : array
Résultat array

listFiles() public méthode

Method to return a listing of the contents of an archived file
public listFiles ( boolean $full = false ) : array
$full boolean
Résultat array

Property Details

$archive protected_oe property

ZipArchive object
protected ZipArchive $archive
Résultat ZipArchive

$path protected_oe property

Archive path
protected string $path
Résultat string

$workingDir protected_oe property

Working directory
protected string $workingDir
Résultat string