PHP 클래스 Pop\Archive\Adapter\Tar

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Archive\Adapter\ArchiveInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$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