Fully Qualified Name: | Zend\View\Strategy\JsonStrategy |
Extends: | AbstractListenerAggregate |
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | JsonStrategy |
attach() | {@inheritDoc} | JsonStrategy |
detach() | {@inheritDoc} | AbstractListenerAggregate |
getCharset() | Retrieve the current character set | JsonStrategy |
injectResponse() | Inject the response with the JSON payload and appropriate Content-Type header | JsonStrategy |
selectRenderer() | Detect if we should use the JsonRenderer based on model type | JsonStrategy |
setCharset() | Set the content-type character set | JsonStrategy |
Constructor
Parameter Name | Type | Description |
---|---|---|
$renderer | \JsonRenderer |
Returns:
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events | ||
$priority |
Returns:
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events |
Returns:
Retrieve the current character set
Returns: string
Inject the response with the JSON payload and appropriate Content-Type header
Parameter Name | Type | Description |
---|---|---|
$e | \ViewEvent |
Returns: void
Detect if we should use the JsonRenderer based on model type
Parameter Name | Type | Description |
---|---|---|
$e | \ViewEvent |
Returns: null|\JsonRenderer
Set the content-type character set
Parameter Name | Type | Description |
---|---|---|
$charset | string |
Returns: \JsonStrategy