메소드 | 설명 | |
---|---|---|
__construct ( boolean $useZipFile = false ) | Constructor. | |
__destruct ( ) | Destructor. | |
getArchiveSize ( ) : integer | Return the current size of the archive | |
getZipData ( ) : string | Get the zip file contents If the zip haven't been finalized yet, this will cause it to become finalized | |
getZipFile ( ) : resource | Get the handle resource for the archive zip file. | |
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 file 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 file 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. | |
saveZipFile ( $fileName ) : boolean | Alias for setZipFile | |
sendZip ( String $fileName = null, String $contentType = self::CONTENT_TYPE, String $utf8FileName = null, boolean $inline = false ) : boolean | Send the archive as a zip download | |
setZipFile ( string $fileName ) : boolean | Set zip file to write zip data to. | |
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 ) |
public __construct ( boolean $useZipFile = false ) | ||
$useZipFile | boolean | Write temp zip data to tempFile? Default FALSE |
public getArchiveSize ( ) : integer | ||
리턴 | integer | Size of the archive |
public getZipData ( ) : string | ||
리턴 | string | zip data |
public getZipFile ( ) : resource | ||
리턴 | resource | zip file handle |
public onBeginAddFile ( array $params ) | ||
$params | array | Array that contains gzLength. |
public onBeginBuildResponseHeader ( ) |
public onBuildZipEntry ( array $params ) | ||
$params | array | Array that contains zipEntry. |
public onEndAddFile ( array $params ) | ||
$params | array | Array that contains gzData. |
public onEndBuildResponseHeader ( ) |
public onOpenStream ( ) |
public onProcessFile ( array $params ) | ||
$params | array | Array that contains data. |
public saveZipFile ( $fileName ) : boolean | ||
$fileName | ||
리턴 | boolean |
public sendZip ( String $fileName = null, String $contentType = self::CONTENT_TYPE, String $utf8FileName = null, boolean $inline = false ) : boolean | ||
$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 "attachment". Optional, defaults to false. |
리턴 | boolean | $success |
public setZipFile ( string $fileName ) : boolean | ||
$fileName | string | |
리턴 | boolean | Success |
public zipVerifyMemBuffer ( integer $gzLength ) | ||
$gzLength | integer | length of the pending data. |