Class Zend_Controller_Response_Abstract

Description

Zend_Controller_Response_Abstract

Base class for Zend_Controller responses

Located in /Zend/Controller/Response/Abstract.php (line 30)


	
			
Direct descendents
Class Description
Zend_Controller_Response_Cli Zend_Controller_Response_Cli
Zend_Controller_Response_Http Zend_Controller_Response_Http
Variable Summary
string $_body
Exception $_exception
Method Summary
self appendBody (string $content)
string getBody ()
null|Exception getException ()
boolean isException ()
boolean renderExceptions ([boolean $flag = null])
self setBody (string $content)
self setException ( $e)
string __toString ()
Variables
string $_body = '' (line 36)

Body content

  • access: protected
Exception $_exception = null (line 42)

Exception

  • access: protected
boolean $_renderExceptions = false (line 48)

Whether or not to render exceptions; off by default

  • access: protected
Methods
appendBody (line 70)

Append content to the body content

  • access: public
self appendBody (string $content)
  • string $content
getBody (line 81)

Return the body content

  • access: public
string getBody ()
getException (line 103)

Retrieve the exception object, if set

  • access: public
null|Exception getException ()
isException (line 113)

Has an exception been registered with the response?

  • access: public
boolean isException ()
renderExceptions (line 127)

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.

  • access: public
boolean renderExceptions ([boolean $flag = null])
  • boolean $flag: Optional
setBody (line 58)

Set body content

If body content already defined, this will replace it.

  • access: public
self setBody (string $content)
  • string $content
setException (line 92)

Register an exception with the response

  • access: public
self setException ( $e)
  • Exception $e
__toString (line 143)

Magic __toString functionality

Sends all headers prior to returning the string

  • access: public
string __toString ()

Redefined in descendants as:

Documentation generated on Sun, 29 Oct 2006 21:27:50 -0600 by phpDocumentor 1.3.0RC6