DefaultResponse Class Reference

Detailed Description

Default Response implementation.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 22 of file DefaultResponse.php.

+ Inheritance diagram for DefaultResponse:

Public Member Functions

 __construct (Formatter $formatter)
 
 setCacheId ($cacheId)
 
 getCacheId ()
 
 setStatus ($status)
 
 getStatus ()
 
 setFile ($filename, $content='')
 
 getFile ()
 
 setFinal ()
 
 isFinal ()
 
- Public Member Functions inherited from AbstractControllerMessage
 __construct (Formatter $formatter)
 
 setSender ($sender)
 
 getSender ()
 
 setContext ($context)
 
 getContext ()
 
 setAction ($action)
 
 getAction ()
 
 setFormat ($format)
 
 getFormat ()
 
 setHeader ($name, $value)
 
 setHeaders (array $headers)
 
 getHeader ($name, $default=null)
 
 getHeaders ()
 
 clearHeader ($name)
 
 clearHeaders ()
 
 hasHeader ($name)
 
 setValue ($name, $value)
 
 setValues (array $values)
 
 getValue ($name, $default=null, $filter=null, $options=null)
 
 getBooleanValue ($name, $default=false)
 
 getValues ()
 
 clearValue ($name)
 
 clearValues ()
 
 hasValue ($name)
 
 setProperty ($name, $value)
 
 getProperty ($name)
 
 addError (ApplicationError $error)
 
 setErrors (array $errors)
 
 getErrors ()
 
 clearErrors ()
 
 hasErrors ()
 
 __toString ()
 

Additional Inherited Members

- Public Attributes inherited from Response
const STATUS_200 = '200 OK'
 
const STATUS_201 = '201 Created'
 
const STATUS_202 = '202 Accepted'
 
const STATUS_204 = '204 No Content'
 
const STATUS_400 = '400 Bad Request'
 
const STATUS_404 = '404 Not Found'
 
- Protected Member Functions inherited from AbstractControllerMessage
 getFormatter ()
 

Constructor & Destructor Documentation

__construct ( Formatter  $formatter)

Constructor.

Parameters
$formatter

Definition at line 33 of file DefaultResponse.php.

Member Function Documentation

setCacheId (   $cacheId)
See also
Response::setCacheId()

Implements Response.

Definition at line 40 of file DefaultResponse.php.

getCacheId ( )
See also
Response::getCacheId()

Implements Response.

Definition at line 47 of file DefaultResponse.php.

setStatus (   $status)
See also
Response::setStatus()

Implements Response.

Definition at line 54 of file DefaultResponse.php.

getStatus ( )
See also
Response::getStatus()

Implements Response.

Definition at line 61 of file DefaultResponse.php.

setFile (   $filename,
  $content = '' 
)
See also
Response::setFile()

Implements Response.

Definition at line 68 of file DefaultResponse.php.

getFile ( )
See also
Response::getFile()

Implements Response.

Definition at line 82 of file DefaultResponse.php.

setFinal ( )
See also
Response::setFinal()

Implements Response.

Definition at line 89 of file DefaultResponse.php.

isFinal ( )
See also
Response::isFinal()

Implements Response.

Definition at line 96 of file DefaultResponse.php.