baserCMS クラスリファレンス

BcZip
in package

Class BcZip

Table of Contents

Properties

$error  : null
error
$topArchiveName  : null
Top Archive Name
$Zip  : bool|ZipArchive
ZipArchive

Methods

__construct()  : mixed
BcZip constructor.
create()  : void
zip生成
extract()  : bool
ZIP を展開する
_escapePath()  : string
CUI 向けにパスをエスケープする
_extractByCommand()  : bool
コマンドによる展開
_extractByPhpLib()  : bool
ZipArchive クラスによる展開
zipSub()  : void
再帰的にzip生成対象ファイルを追加する

Properties

$error

error

public null $error = null

$topArchiveName

Top Archive Name

public null $topArchiveName = null

$Zip

ZipArchive

public bool|ZipArchive $Zip = false

Methods

__construct()

BcZip constructor.

public __construct() : mixed
Tags
checked
noTodo

create()

zip生成

public create(string $sorce, string $dist) : void
Parameters
$sorce : string

元データ

$dist : string

出力先

Tags
checked
noTodo

extract()

ZIP を展開する

public extract( $source,  $target) : bool
Parameters
$source :
$target :
Tags
checked
noTodo
Return values
bool

_escapePath()

CUI 向けにパスをエスケープする

protected _escapePath( $path) : string
Parameters
$path :
Tags
checked
noTodo
Return values
string

_extractByCommand()

コマンドによる展開

protected _extractByCommand( $source,  $target) : bool
Parameters
$source :
$target :
Tags
checked
noTodo
Return values
bool

_extractByPhpLib()

ZipArchive クラスによる展開

protected _extractByPhpLib( $source,  $target) : bool
Parameters
$source :
$target :
Tags
checked
noTodo
Return values
bool

zipSub()

再帰的にzip生成対象ファイルを追加する

private zipSub(ZipArchive $za, string $path[, string $parentPath = '' ]) : void
Parameters
$za : ZipArchive
$path : string
$parentPath : string = ''
Tags
checked
noTodo

        
On this page

Search results