PHP 클래스 Pop\Archive\Adapter\Phar

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

보호된 프로퍼티들

프로퍼티 타입 설명
$archive ZipArchive ZipArchive object
$path string Archive path

공개 메소드들

메소드 설명
__construct ( Archive $archive ) : Phar 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 ) : Phar
$archive Pop\Archive\Archive
리턴 Phar

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 보호되어 있는 프로퍼티

ZipArchive object
protected ZipArchive $archive
리턴 ZipArchive

$path 보호되어 있는 프로퍼티

Archive path
protected string $path
리턴 string