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.
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
-
$dynamicCache Cache instance
Definition at line 38 of file GenericFormat.php.
Member Function Documentation
◆ getMimeType()
| getMimeType | ( | Response | $response = null | ) |
◆ 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()
|
protected |
Reimplemented from AbstractFormat.
Definition at line 66 of file GenericFormat.php.
◆ serializeValues()
|
protected |
Reimplemented from AbstractFormat.
Definition at line 73 of file GenericFormat.php.
◆ afterSerialize()
|
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
|
protected |
Definition at line 32 of file GenericFormat.php.