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

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

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

Свойство Тип Описание
$archive Archive_Tar Archive_Tar object
$compression string Archive compression
$path string Archive path

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

Метод Описание
__construct ( Archive $archive ) : Tar Method to instantiate an archive adapter object
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
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 ) : Tar
$archive Pop\Archive\Archive
Результат Tar

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

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

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

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

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

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

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

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

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

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