PHP Class BcZip

Mostra file Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$Zip boolean | ZipArchive ZipArchive
$error null error
$topArchiveName null Top Archive Name

Public Methods

Method Description
__construct ( ) BcZip constructor.
__destruct ( ) Destruct
extract ( $source, $target ) : boolean ZIP を展開する

Protected Methods

Method Description
_escapePath ( $path ) : string CUI 向けにパスをエスケープする
_extractByCommand ( $source, $target ) : boolean コマンドによる展開
_extractByPhpLib ( $source, $target ) : boolean ZipArchive クラスによる展開

Method Details

__construct() public method

BcZip constructor.
public __construct ( )

__destruct() public method

Destruct
public __destruct ( )

_escapePath() protected method

CUI 向けにパスをエスケープする
protected _escapePath ( $path ) : string
$path
return string

_extractByCommand() protected method

コマンドによる展開
protected _extractByCommand ( $source, $target ) : boolean
$source
$target
return boolean

_extractByPhpLib() protected method

ZipArchive クラスによる展開
protected _extractByPhpLib ( $source, $target ) : boolean
$source
$target
return boolean

extract() public method

ZIP を展開する
public extract ( $source, $target ) : boolean
$source
$target
return boolean

Property Details

$Zip public_oe property

ZipArchive
public bool|ZipArchive $Zip
return boolean | ZipArchive

$error public_oe property

error
public null $error
return null

$topArchiveName public_oe property

Top Archive Name
public null $topArchiveName
return null