PHP Class Simplezip

PHP versions 4 and 5 Copyright 2008 - 2011, Catchup, Inc. 1-19-4 ikinomatsubara, fukuoka-shi fukuoka, Japan 819-0055
ファイルを表示 Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$centralDirectory array Central Directory
$compressedData array 圧縮データ
$endOfCentralDirectory string End Of Central Directory Record
$entries array エントリ(解凍用)
$oldOffset integer オフセット

Public Methods

Method Description
_readFile ( string $path ) : array ZIPファイルを読み込む
addFile ( binary $data, string $directoryName, integer $time ) 圧縮対象データを追加
addFile2 ( mixed $data, string $name, integer $time ) addFile2
addFolder ( string $directory, $put_into = '' ) フォルダを追加する
download ( string $archiveName ) 圧縮ファイルをダウンロードする
getMTime ( integer $time ) : hex Get Hexd Time
getZippedData ( ) : binary 圧縮されたデータを取得する
unix2DosTime ( $unixtime ) Adds "file" to archive
unzip ( $source, $tareget ) : 解凍したファイルを出力する

Method Details

_readFile() public method

ZIPファイルを読み込む
public _readFile ( string $path ) : array
$path string
return array

addFile() public method

圧縮対象データを追加
public addFile ( binary $data, string $directoryName, integer $time )
$data binary
$directoryName string
$time integer

addFile2() public method

addFile2
public addFile2 ( mixed $data, string $name, integer $time )
$data mixed
$name string
$time integer

addFolder() public method

フォルダを追加する
public addFolder ( string $directory, $put_into = '' )
$directory string

download() public method

圧縮ファイルをダウンロードする
public download ( string $archiveName )
$archiveName string

getMTime() public method

Get Hexd Time
public getMTime ( integer $time ) : hex
$time integer Unix timestamp
return hex the date formated as a ZIP date

getZippedData() public method

圧縮されたデータを取得する
public getZippedData ( ) : binary
return binary $zipedData

unix2DosTime() public method

Adds "file" to archive
public unix2DosTime ( $unixtime )

unzip() public method

解凍したファイルを出力する
public unzip ( $source, $tareget ) :
return

Property Details

$centralDirectory public_oe property

Central Directory
public array $centralDirectory
return array

$compressedData public_oe property

圧縮データ
public array $compressedData
return array

$endOfCentralDirectory public_oe property

End Of Central Directory Record
public string $endOfCentralDirectory
return string

$entries public_oe property

エントリ(解凍用)
public array $entries
return array

$oldOffset public_oe property

オフセット
public int $oldOffset
return integer