ApiJsonStrategy

View strategy for returning JSON from the API.
extends Zend\View\Strategy\JsonStrategy
Methods Summary
public
# __construct( Omeka\View\Renderer\ApiJsonRenderer $renderer )
Constructor, sets the renderer object

Overrides

public
# selectRenderer( Zend\View\ViewEvent $e )
public
# injectResponse( Zend\View\ViewEvent $e )
protected
# getResponseStatusCode( Omeka\View\Model\ApiJsonModel $model )
Get the HTTP status code for an API response.
protected
# getStatusCodeForException( Exception $exception = NULL )
Get a status code based on the type of an exception (or lack thereof).
Methods inherited from Zend\View\Strategy\JsonStrategy
__construct(), attach(), setCharset(), getCharset(), selectRenderer(), injectResponse()
Methods inherited from Zend\EventManager\AbstractListenerAggregate
detach()
Properties inherited from Zend\View\Strategy\JsonStrategy
$charset, $multibyteCharsets, $renderer
Properties inherited from Zend\EventManager\AbstractListenerAggregate
$listeners