PHP Класс Pop\Archive\Adapter\Zip

Автор: Nick Sagona, III ([email protected])
Наследование: implements Pop\Archive\Adapter\ArchiveInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$archive ZipArchive ZipArchive object
$path string Archive path
$workingDir string Working directory

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Method to instantiate an archive adapter object
public __construct ( Archive $archive ) : Zip
$archive Pop\Archive\Archive
Результат Zip

addDir() публичный Метод

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
Результат void

addFiles() публичный Метод

Method to create an archive file
public addFiles ( string | array $files ) : void
$files string | array
Результат void

archive() публичный Метод

Method to return the archive object
public archive ( ) : mixed
Результат mixed

extract() публичный Метод

Method to extract an archived and/or compressed file
public extract ( string $to = null ) : void
$to string
Результат void

getDirs() публичный Метод

Method to return an array of all the directories in the archive
public getDirs ( ) : array
Результат array

listFiles() публичный Метод

Method to return a listing of the contents of an archived file
public listFiles ( boolean $full = false ) : array
$full boolean
Результат array

Описание свойств

$archive защищенное свойство

ZipArchive object
protected ZipArchive $archive
Результат ZipArchive

$path защищенное свойство

Archive path
protected string $path
Результат string

$workingDir защищенное свойство

Working directory
protected string $workingDir
Результат string