Package: Application\Resource
Initializes controller action helpers.
Define the custom response format contexts for Omeka.
Plugin writers should use the ‘response_contexts’ filter to modify or expand the list of formats that existing controllers may respond to.
Example of a definition of a response context through the ZF API:
$contexts->addContext(‘dc’, array(‘suffix’ => ‘dc’,’headers’ => array(‘Content-Type’ => ‘text/xml’),’callbacks’ => array(‘init’ => ‘atBeginningDoThis’,’post’ => ‘afterwardsDoThis’)));
Returns: | void |
---|
Returns the default response contexts for Omeka.
Returns: | array |
---|