Zend_Controller_Response_Abstract
Base class for Zend_Controller responses
Located in /Controller/Response/Abstract.php (line 32)
Class | Description |
---|---|
![]() |
Zend_Controller_Response_Http |
![]() |
Zend_Controller_Response_Cli |
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.
Body content
Exception stack
Array of headers. Each header is an array with keys 'name' and 'value'
Array of raw headers. Each header is a single string, the entire header to emit
HTTP response code to use in headers
Flag; is this response a redirect?
Whether or not to render exceptions; off by default
Append a named body segment to the body content array
If segment already exists, replaces with $content and places at end of array.
Append content to the body content
Can we send headers?
Clear all headers, normal and raw
Clear body array
With no arguments, clears the entire body array. Given a $name, clears just that named segment; if no segment matching $name exists, returns false to indicate an error.
Clears the specified HTTP header
Clears the specified raw HTTP header
Clear all setRawHeader()
Return the body content
If $spec is false, returns the concatenated values of the body content array. If $spec is boolean true, returns the body content array. If $spec is a string and matches a named segment, returns the contents of that segment; otherwise, returns null.
Retrieve the exception stack
Retrieve all exceptions of a given code
Retrieve all exceptions of a given message
Retrieve all exceptions of a given type
Return array of headers; see $_headers for format
Retrieve HTTP response code
Retrieve all setRawHeader()
Does the response object contain an exception with a given code?
Does the response object contain an exception with a given message?
Does the response object contain an exception of a given type?
Insert a named segment into the body content array
Has an exception been registered with the response?
Is this a redirect?
Echo the body segments
Prepend a named body segment to the body content array
If segment already exists, replaces with $content and places at top of array.
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.
Send all headers
Sends any headers specified. If an HTTP response code has been specified, it is sent with the first header.
Send the response, including all headers, rendering exceptions if so requested.
Set body content
If $name is not passed, or is not a string, resets the entire body and sets the 'default' key to $content.
If $name is a string, sets the named segment in the body array to $content.
Register an exception with the response
Set a header
If $replace is true, replaces any headers already defined with that $name.
Set HTTP response code to use with headers
Set raw HTTP header
Allows setting non key => value headers, such as status codes
Set redirect URL
Sets Location header and response code. Forces replacement of any prior redirects.
Normalize a header name
Normalizes a header name to X-Capitalized-Names
Magic __toString functionality
Proxies to sendResponse() and returns response value as string using output buffering.
Documentation generated on Mon, 21 Jun 2010 15:05:31 -0400 by phpDocumentor 1.4.3