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 23 of file DefaultResponse.php.

+ Inheritance diagram for DefaultResponse:

Public Member Functions

 __construct (Formatter $formatter)
 
 setRequest (Request $request)
 
 getRequest ()
 
 setCacheId ($cacheId)
 
 getCacheId ()
 
 setCacheLifetime ($seconds)
 
 getCacheLifetime ()
 
 isCached ()
 
 getCacheDate ()
 
 setStatus ($status)
 
 getStatus ()
 
 setFile ($filename, $isDownload, $content='', $type='')
 
 getFile ()
 
 setDocument (ResponseDocument $document)
 
 getDocument ()
 
- Public Member Functions inherited from AbstractControllerMessage
 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, $validateDesc=null, $suppressException=false)
 
 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

- Protected Member Functions inherited from AbstractControllerMessage
 getFormatter ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Formatter  $formatter)

Constructor.

Parameters
$formatter

Reimplemented from AbstractControllerMessage.

Definition at line 36 of file DefaultResponse.php.

Member Function Documentation

◆ setRequest()

setRequest ( Request  $request)
See also
Response::setRequest()

Implements Response.

Definition at line 44 of file DefaultResponse.php.

◆ getRequest()

getRequest ( )
See also
Response::getRequest()

Implements Response.

Definition at line 54 of file DefaultResponse.php.

◆ setCacheId()

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

Implements Response.

Definition at line 61 of file DefaultResponse.php.

◆ getCacheId()

getCacheId ( )
See also
Response::getCacheId()

Implements Response.

Definition at line 68 of file DefaultResponse.php.

◆ setCacheLifetime()

setCacheLifetime (   $seconds)
See also
Response::setCacheLifetime()

Implements Response.

Definition at line 75 of file DefaultResponse.php.

◆ getCacheLifetime()

getCacheLifetime ( )
See also
Response::getCacheLifetime()

Implements Response.

Definition at line 82 of file DefaultResponse.php.

◆ isCached()

isCached ( )
See also
Response::isCached()

Implements Response.

Definition at line 89 of file DefaultResponse.php.

◆ getCacheDate()

getCacheDate ( )
See also
Response::getCacheDate()

Implements Response.

Definition at line 97 of file DefaultResponse.php.

◆ setStatus()

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

Implements Response.

Definition at line 105 of file DefaultResponse.php.

◆ getStatus()

getStatus ( )
See also
Response::getStatus()

Implements Response.

Definition at line 112 of file DefaultResponse.php.

◆ setFile()

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

Implements Response.

Definition at line 119 of file DefaultResponse.php.

◆ getFile()

getFile ( )
See also
Response::getFile()

Implements Response.

Definition at line 129 of file DefaultResponse.php.

◆ setDocument()

setDocument ( ResponseDocument  $document)
See also
Response::setDocument()

Implements Response.

Definition at line 144 of file DefaultResponse.php.

◆ getDocument()

getDocument ( )
See also
Response::getDocument()

Implements Response.

Definition at line 152 of file DefaultResponse.php.