Zend_Controller_Response_AbstractZend_Controller_Response_Abstract
Base class for Zend_Controller responses
Located in /Zend/Controller/Response/Abstract.php (line 31)
| Class | Description |
|---|---|
Zend_Controller_Response_Cli
|
Zend_Controller_Response_Cli |
Zend_Controller_Response_Http
|
Zend_Controller_Response_Http |
Zend_Controller_Response_Abstract
setHeader
(string $name, string $value, [boolean $replace = false])
boolean
$headersSentThrowsException
= true (line 78)
Flag; if true, when header operations are called after headers have been sent, an exception will be raised; otherwise, processing will continue as normal. Defaults to true.
array
$_body
= array() (line 37)
Body content
Exception
$_exceptions
= array() (line 43)
Exception stack
array
$_headers
= array() (line 49)
Array of headers. Each header is an array with keys 'name' and 'value'
array
$_headersRaw
= array() (line 55)
Array of raw headers. Each header is a single string, the entire header to emit
int
$_httpResponseCode
= 200 (line 62)
HTTP response code to use in headers
boolean
$_renderExceptions
= false (line 68)
Whether or not to render exceptions; off by default
appendBody (line 312)
Append content to the body content
canSendHeaders (line 235)
Can we send headers?
clearAllHeaders (line 195)
Clear all headers, normal and raw
clearRawHeaders (line 184)
Clear all setRawHeader()
getBody (line 325)
Return the body content
getException (line 365)
Retrieve the exception stack
getHeaders (line 137)
Return array of headers; see $_headers for format
getHttpResponseCode (line 223)
Retrieve HTTP response code
getRawHeaders (line 174)
Retrieve all setRawHeader()
isException (line 375)
Has an exception been registered with the response?
outputBody (line 341)
Echo the body segments
renderExceptions (line 389)
Whether or not to render exceptions (off by default)
If called with no arguments or a null argument, returns the value of the flag; otherwise, sets it and returns the current value.
sendHeaders (line 254)
Send all headers
Sends any headers specified. If an HTTP response code has been specified, it is sent with the first header.
sendResponse (line 404)
Send the response, including all headers, rendering exceptions if so requested.
setBody (line 300)
Set body content
If body content already defined, this will replace it.
setException (line 354)
Register an exception with the response
setHeader (line 91)
Set a header
If $replace is true, replaces any headers already defined with that $name.
setHttpResponseCode (line 207)
Set HTTP response code to use with headers
setRawHeader (line 162)
Set raw HTTP header
Allows setting non key => value headers, such as status codes
setRedirect (line 123)
Set redirect URL
Sets Location header and response code. Forces replacement of any prior redirects.
__toString (line 428)
Magic __toString functionality
Proxies to sendResponse() and returns response value as string using output buffering.
Documentation generated on Wed, 21 Feb 2007 11:45:13 -0800 by phpDocumentor 1.3.1