Detailed Description

GenericFormat is used to output arbitrary responses.

It prints the content of the 'body' value of the response. The mime type is defined by the 'mime_type' value of the response. The default cache section can be set with the 'cache_section' value of the response.

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

Definition at line 27 of file GenericFormat.php.

+ Inheritance diagram for GenericFormat:

Public Member Functions

 __construct (Cache $dynamicCache)
 
 getMimeType (Response $response=null)
 
- Public Member Functions inherited from AbstractFormat
 deserialize (Request $request)
 
 serialize (Response $response)
 
 getResponseHeaders (Response $response)
 
- Public Member Functions inherited from Format
 isCached (Response $response)
 
 getCacheDate (Response $response)
 

Public Attributes

const CACHE_SECTION = 'genericformat'
 

Protected Member Functions

 getCache ()
 
 getBaseCacheSection ()
 
 deserializeValues (Request $request)
 
 serializeValues (Response $response)
 
 afterSerialize (Response $response)
 
- Protected Member Functions inherited from AbstractFormat
 beforeDeserialize (Request $request)
 
 deserializeValues (Request $request)
 
 afterDeserialize (Request $request)
 
 beforeSerialize (Response $response)
 
 serializeValues (Response $response)
 
 afterSerialize (Response $response)
 
 getNode (ObjectId $oid)
 
 filterValue ($value, AttributeDescription $attribute)
 

Protected Attributes

 $cache = null
 

Constructor & Destructor Documentation

__construct ( Cache  $dynamicCache)

Constructor.

Parameters
$dynamicCacheCache instance

Definition at line 38 of file GenericFormat.php.

Member Function Documentation

getMimeType ( Response  $response = null)
See also
Format::getMimeType()

Implements Format.

Definition at line 45 of file GenericFormat.php.

getCache ( )
protected
See also
CacheTrait::getCache()

Definition at line 52 of file GenericFormat.php.

getBaseCacheSection ( )
protected
See also
CacheTrait::getBaseCacheSection()

Definition at line 59 of file GenericFormat.php.

deserializeValues ( Request  $request)
protected
See also
AbstractFormat::deserializeValues()

Definition at line 66 of file GenericFormat.php.

serializeValues ( Response  $response)
protected
See also
AbstractFormat::serializeValues()

Definition at line 73 of file GenericFormat.php.

afterSerialize ( Response  $response)
protected
See also
AbstractFormat::afterSerialize()

Definition at line 80 of file GenericFormat.php.

Member Data Documentation

const CACHE_SECTION = 'genericformat'

Definition at line 30 of file GenericFormat.php.

$cache = null
protected

Definition at line 32 of file GenericFormat.php.