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)
 
 afterDeserialize (Request $request)
 
 beforeSerialize (Response $response)
 
 getNode (ObjectId $oid)
 
 filterValue ($value, AttributeDescription $attribute)
 

Protected Attributes

 $cache = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Cache  $dynamicCache)

Constructor.

Parameters
$dynamicCacheCache instance

Definition at line 38 of file GenericFormat.php.

Member Function Documentation

◆ getMimeType()

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

Implements Format.

Definition at line 45 of file GenericFormat.php.

◆ getCache()

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

Definition at line 52 of file GenericFormat.php.

◆ getBaseCacheSection()

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

Definition at line 59 of file GenericFormat.php.

◆ deserializeValues()

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

Reimplemented from AbstractFormat.

Definition at line 66 of file GenericFormat.php.

◆ serializeValues()

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

Reimplemented from AbstractFormat.

Definition at line 73 of file GenericFormat.php.

◆ afterSerialize()

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

Reimplemented from AbstractFormat.

Definition at line 80 of file GenericFormat.php.

Member Data Documentation

◆ CACHE_SECTION

const CACHE_SECTION = 'genericformat'

Definition at line 30 of file GenericFormat.php.

◆ $cache

$cache = null
protected

Definition at line 32 of file GenericFormat.php.