Class jResponseZip

Description

generate a zip content and send it to the browser

Located in /core/response/jResponseZip.class.php (line 21)

jResponse
   |
   --jResponseZip
Variable Summary
Method Summary
jResponseZip __construct ()
boolean output ()
Variables
jZipCreator $content = null (line 31)

the zip content. Manipulates it to add files into it

  • access: public
mixed $zipFilename = '' (line 36)

file name which appear in the browser

  • access: public
string $_type = 'zip' (line 25)
  • access: protected

Redefinition of:
jResponse::$_type

Inherited Variables

Inherited from jResponse

jResponse::$forcedHttpVersion
jResponse::$httpVersion
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
jResponse::$_outputOnlyHeaders
Methods
Constructor __construct (line 41)

constructor

jResponseZip __construct ()

Redefinition of:
jResponse::__construct()
constructor
output (line 50)

construct the zip content into zip format, and send it to the browser

  • return: true if it's ok
  • access: public
boolean output ()

Redefinition of:
jResponse::output()
Send the response in the correct format. If errors or exceptions appears during this method, outputErrors will be called. So the the content should be generated using the output buffer if errors can be appeared during this generation. Be care of http headers.

Inherited Methods

Inherited From jResponse

jResponse::__construct()
jResponse::addHttpHeader()
jResponse::cleanCacheHeaders()
jResponse::clearHttpHeaders()
jResponse::getFormatType()
jResponse::getType()
jResponse::isValidCache()
jResponse::output()
jResponse::outputErrors()
jResponse::sendHttpHeaders()
jResponse::setExpires()
jResponse::setHttpStatus()
jResponse::setLifetime()
jResponse::_checkRequestType()
jResponse::_normalizeDate()

Documentation generated on Wed, 04 Jan 2017 22:56:31 +0100 by phpDocumentor 1.4.3