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 24 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 ()
 
- 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, $validateDesc=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

- Protected Member Functions inherited from AbstractControllerMessage
 getFormatter ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Formatter  $formatter)

Constructor.

Parameters
$formatter

Definition at line 37 of file DefaultResponse.php.

Member Function Documentation

◆ setRequest()

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

Implements Response.

Definition at line 45 of file DefaultResponse.php.

◆ getRequest()

getRequest ( )
See also
Response::getRequest()

Implements Response.

Definition at line 55 of file DefaultResponse.php.

◆ setCacheId()

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

Implements Response.

Definition at line 62 of file DefaultResponse.php.

◆ getCacheId()

getCacheId ( )
See also
Response::getCacheId()

Implements Response.

Definition at line 69 of file DefaultResponse.php.

◆ setCacheLifetime()

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

Implements Response.

Definition at line 76 of file DefaultResponse.php.

◆ getCacheLifetime()

getCacheLifetime ( )
See also
Response::getCacheLifetime()

Implements Response.

Definition at line 83 of file DefaultResponse.php.

◆ isCached()

isCached ( )
See also
Response::isCached()

Implements Response.

Definition at line 90 of file DefaultResponse.php.

◆ getCacheDate()

getCacheDate ( )
See also
Response::getCacheDate()

Implements Response.

Definition at line 98 of file DefaultResponse.php.

◆ setStatus()

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

Implements Response.

Definition at line 106 of file DefaultResponse.php.

◆ getStatus()

getStatus ( )
See also
Response::getStatus()

Implements Response.

Definition at line 113 of file DefaultResponse.php.

◆ setFile()

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

Implements Response.

Definition at line 120 of file DefaultResponse.php.

◆ getFile()

getFile ( )
See also
Response::getFile()

Implements Response.

Definition at line 137 of file DefaultResponse.php.