PHP 클래스 Pop\Archive\Archive

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter mixed Archive adapter
$allowed array Array of allowed file types.

공개 메소드들

메소드 설명
__construct ( string $archive, string $password = null, string $prefix = 'Pop\Archive\Adapter\' ) : Archive Constructor
adapter ( ) : mixed Method to return the adapter object
addFiles ( string | array $files ) : Archive Method to create an archive file
archive ( ) : mixed Method to return the archive object within the adapter object
compress ( string $ext = 'gz' ) : Archive Method to compress an archive file with Gzip or Bzip2
extract ( string $to = null ) : Archive Method to extract an archived and/or compressed file
factory ( string $archive, string $password = null ) : Archive Static method to instantiate the archive object and return itself to facilitate chaining methods together.
formats ( ) : array Get formats
listFiles ( boolean $full = false ) : array Method to return a listing of the contents of an archived file

보호된 메소드들

메소드 설명
setAdapter ( string $password = null, string $prefix ) : void Method to set the adapter based on the file name

메소드 상세

__construct() 공개 메소드

Instantiate the archive object
public __construct ( string $archive, string $password = null, string $prefix = 'Pop\Archive\Adapter\' ) : Archive
$archive string
$password string
$prefix string
리턴 Archive

adapter() 공개 메소드

Method to return the adapter object
public adapter ( ) : mixed
리턴 mixed

addFiles() 공개 메소드

Method to create an archive file
public addFiles ( string | array $files ) : Archive
$files string | array
리턴 Archive

archive() 공개 메소드

Method to return the archive object within the adapter object
public archive ( ) : mixed
리턴 mixed

compress() 공개 메소드

Method to compress an archive file with Gzip or Bzip2
public compress ( string $ext = 'gz' ) : Archive
$ext string
리턴 Archive

extract() 공개 메소드

Method to extract an archived and/or compressed file
public extract ( string $to = null ) : Archive
$to string
리턴 Archive

factory() 공개 정적인 메소드

Static method to instantiate the archive object and return itself to facilitate chaining methods together.
public static factory ( string $archive, string $password = null ) : Archive
$archive string
$password string
리턴 Archive

formats() 공개 정적인 메소드

Get formats
public static formats ( ) : array
리턴 array

listFiles() 공개 메소드

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

setAdapter() 보호된 메소드

Method to set the adapter based on the file name
protected setAdapter ( string $password = null, string $prefix ) : void
$password string
$prefix string
리턴 void

프로퍼티 상세

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

Archive adapter
protected mixed $adapter
리턴 mixed

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

Array of allowed file types.
protected array $allowed
리턴 array