PHP Class BcZip

Afficher le fichier Open project: baserproject/basercms Class Usage Examples

Méthodes publiques

Свойство Type Description
$Zip boolean | ZipArchive ZipArchive
$error null error
$topArchiveName null Top Archive Name

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

BcZip constructor.
public __construct ( )

__destruct() public méthode

Destruct
public __destruct ( )

_escapePath() protected méthode

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

_extractByCommand() protected méthode

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

_extractByPhpLib() protected méthode

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

extract() public méthode

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

Property Details

$Zip public_oe property

ZipArchive
public bool|ZipArchive $Zip
Résultat boolean | ZipArchive

$error public_oe property

error
public null $error
Résultat null

$topArchiveName public_oe property

Top Archive Name
public null $topArchiveName
Résultat null