PHP 클래스 PHPZip\Zip\Stream\ZipStream

상속: extends PHPZip\Zip\Core\AbstractZipArchive
파일 보기 프로젝트 열기: Grandt/PHPZip 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( String $fileName = '', String $contentType = self::CONTENT_TYPE, String $utf8FileName = null, boolean $inline = false ) Constructor.
__destruct ( ) Destructor.
getMaxStreamBufferLength ( ) : integer
onBeginAddFile ( array $params ) Called by superclass when specialised action is needed at the start of adding a file to the archive.
onBeginBuildResponseHeader ( ) Called by superclass when specialised action is needed at the start of sending the zip stream response header.
onBuildZipEntry ( array $params ) Called by superclass when specialised action is needed while building a zip entry.
onEndAddFile ( array $params ) Called by superclass when specialised action is needed at the end of adding a file to the archive.
onEndBuildResponseHeader ( ) Called by superclass when specialised action is needed at the end of sending the zip stream response header.
onOpenStream ( ) Called by superclass when specialised action is needed while opening a stream.
onProcessFile ( array $params ) Called by superclass when specialised action is needed while processing a file.
setMaxStreamBufferLength ( integer $maxStreamBufferLength )
zipFlush ( ) Flush Zip Data stored in memory, to a temp file.
zipFlushBuffer ( )
zipVerifyMemBuffer ( integer $gzLength ) Verify if the memory buffer is about to be exceeded.
zipWrite ( string $data )

메소드 상세

__construct() 공개 메소드

Constructor.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public __construct ( String $fileName = '', String $contentType = self::CONTENT_TYPE, String $utf8FileName = null, boolean $inline = false )
$fileName String The name of the Zip archive, in ISO-8859-1 (or ASCII) encoding, ie. "archive.zip". Optional, defaults to NULL, which means that no ISO-8859-1 encoded file name will be specified.
$contentType String Content mime type. Optional, defaults to "application/zip".
$utf8FileName String The name of the Zip archive, in UTF-8 encoding. Optional, defaults to NULL, which means that no UTF-8 encoded file name will be specified.
$inline boolean Use Content-Disposition with "inline" instead of "attached". Optional, defaults to FALSE.

__destruct() 공개 메소드

Perform clean up actions. Please note that frameworks are absolutely prohibited from sending ANYTHING to the output after the Zip is sent.
저자: A. Grandt ([email protected])
public __destruct ( )

getMaxStreamBufferLength() 공개 메소드

onBeginAddFile() 공개 메소드

Called by superclass when specialised action is needed at the start of adding a file to the archive.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public onBeginAddFile ( array $params )
$params array Array that contains gzLength.

onBeginBuildResponseHeader() 공개 메소드

Called by superclass when specialised action is needed at the start of sending the zip stream response header.
저자: A. Grandt ([email protected])
저자: Greg Kappatos

onBuildZipEntry() 공개 메소드

Called by superclass when specialised action is needed while building a zip entry.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public onBuildZipEntry ( array $params )
$params array Array that contains zipEntry.

onEndAddFile() 공개 메소드

Called by superclass when specialised action is needed at the end of adding a file to the archive.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public onEndAddFile ( array $params )
$params array Array that contains gzData.

onEndBuildResponseHeader() 공개 메소드

Called by superclass when specialised action is needed at the end of sending the zip stream response header.
저자: A. Grandt ([email protected])
저자: Greg Kappatos

onOpenStream() 공개 메소드

Called by superclass when specialised action is needed while opening a stream.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public onOpenStream ( )

onProcessFile() 공개 메소드

Called by superclass when specialised action is needed while processing a file.
저자: A. Grandt ([email protected])
저자: Greg Kappatos
public onProcessFile ( array $params )
$params array Array that contains data.

setMaxStreamBufferLength() 공개 메소드

public setMaxStreamBufferLength ( integer $maxStreamBufferLength )
$maxStreamBufferLength integer

zipFlush() 공개 메소드

Flush Zip Data stored in memory, to a temp file.
저자: A. Grandt ([email protected])
public zipFlush ( )

zipFlushBuffer() 공개 메소드

저자: A. Grandt ([email protected])
public zipFlushBuffer ( )

zipVerifyMemBuffer() 공개 메소드

Verify if the memory buffer is about to be exceeded.
저자: A. Grandt ([email protected])
public zipVerifyMemBuffer ( integer $gzLength )
$gzLength integer length of the pending data.

zipWrite() 공개 메소드

저자: A. Grandt ([email protected])
public zipWrite ( string $data )
$data string