Zend Framework  1.12
Public Member Functions | Public Attributes | List of all members
Zend_Controller_Response_Cli Class Reference

Public Member Functions

 __toString ()
 Magic __toString functionality.
 
- Public Member Functions inherited from Zend_Controller_Response_Abstract
 setHeader ($name, $value, $replace=false)
 Set a header.
 
 setRedirect ($url, $code=302)
 Set redirect URL.
 
 isRedirect ()
 Is this a redirect?
 
 getHeaders ()
 Return array of headers; see $_headers for format.
 
 clearHeaders ()
 Clear headers.
 
 clearHeader ($name)
 Clears the specified HTTP header.
 
 setRawHeader ($value)
 Set raw HTTP header.
 
 getRawHeaders ()
 Retrieve all raw HTTP headers.
 
 clearRawHeaders ()
 Clear all raw HTTP headers.
 
 clearRawHeader ($headerRaw)
 Clears the specified raw HTTP header.
 
 clearAllHeaders ()
 Clear all headers, normal and raw.
 
 setHttpResponseCode ($code)
 Set HTTP response code to use with headers.
 
 getHttpResponseCode ()
 Retrieve HTTP response code.
 
 canSendHeaders ($throw=false)
 Can we send headers?
 
 sendHeaders ()
 Send all headers.
 
 setBody ($content, $name=null)
 Set body content.
 
 appendBody ($content, $name=null)
 Append content to the body content.
 
 clearBody ($name=null)
 Clear body array.
 
 getBody ($spec=false)
 Return the body content.
 
 append ($name, $content)
 Append a named body segment to the body content array.
 
 prepend ($name, $content)
 Prepend a named body segment to the body content array.
 
 insert ($name, $content, $parent=null, $before=false)
 Insert a named segment into the body content array.
 
 outputBody ()
 Echo the body segments.
 
 setException (Exception $e)
 Register an exception with the response.
 
 getException ()
 Retrieve the exception stack.
 
 isException ()
 Has an exception been registered with the response?
 
 hasExceptionOfType ($type)
 Does the response object contain an exception of a given type?
 
 hasExceptionOfMessage ($message)
 Does the response object contain an exception with a given message?
 
 hasExceptionOfCode ($code)
 Does the response object contain an exception with a given code?
 
 getExceptionByType ($type)
 Retrieve all exceptions of a given type.
 
 getExceptionByMessage ($message)
 Retrieve all exceptions of a given message.
 
 getExceptionByCode ($code)
 Retrieve all exceptions of a given code.
 
 renderExceptions ($flag=null)
 Whether or not to render exceptions (off by default)
 
 sendResponse ()
 Send the response, including all headers, rendering exceptions if so requested.
 
 __toString ()
 Magic __toString functionality.
 

Public Attributes

 $headersSentThrowsException = false
 
- Public Attributes inherited from Zend_Controller_Response_Abstract
 $headersSentThrowsException = true
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Controller_Response_Abstract
 _normalizeHeader ($name)
 Normalize a header name.
 
- Protected Attributes inherited from Zend_Controller_Response_Abstract
 $_body = array()
 
 $_exceptions = array()
 
 $_headers = array()
 
 $_headersRaw = array()
 
 $_httpResponseCode = 200
 
 $_isRedirect = false
 
 $_renderExceptions = false
 

Member Function Documentation

__toString ( )

Magic __toString functionality.

Returns
string

Member Data Documentation

$headersSentThrowsException = false