\UnZip

UnZip

Summary

Methods
Properties
Constants
__construct()
setPassword()
extract()
$path
No constants found
_extractTo()
_extractWithZipCommand()
_extractWithZipArchiveClass()
$_password
$_zipPath
N/A
No private methods found
No private properties found
N/A

Properties

$path

$path : string

Type

string — 解凍先フォルダパス

$_password

$_password : string|null

Type

string|null — password

$_zipPath

$_zipPath : string

Type

string — zip file path

Methods

__construct()

__construct(string  $zipFilePath) 

UnZip constructor.

Parameters

string $zipFilePath

解凍するZIPファイルパス

setPassword()

setPassword(string  $password) : void

set password

Parameters

string $password

ZIPの解凍に使うパスワード

extract()

extract() : false|\TemporaryFolder

解凍実行

Returns

false|\TemporaryFolder

_extractTo()

_extractTo(string  $path) : boolean

解凍

Parameters

string $path

解凍先

Returns

boolean

_extractWithZipCommand()

_extractWithZipCommand(string  $path) : boolean

ZIPコマンドを使った解凍

Parameters

string $path

zipファイルパス

Returns

boolean

_extractWithZipArchiveClass()

_extractWithZipArchiveClass(string  $path) : boolean

ZipArchiveクラスを利用した解凍

Parameters

string $path

Zipファイルパス

Returns

boolean