Fully Qualified Name: | Zend\View\Renderer\FeedRenderer |
Implements: | RendererInterface |
Class for Zend\View\Strategy\FeedStrategy compatible template engine implementations
Name | Description | Defined By |
---|---|---|
getEngine() | Return the template engine object, if any | FeedRenderer |
getFeedType() | Get feed type | FeedRenderer |
render() | Renders values as JSON | FeedRenderer |
setFeedType() | Set feed type ('rss' or 'atom') | FeedRenderer |
setResolver() | Set the resolver used to map a template name to a resource the renderer may consume. | FeedRenderer |
Return the template engine object, if any
If using a third-party template engine, such as Smarty, patTemplate, phplib, etc, return the template engine object. Useful for calling methods on these objects, such as for setting filters, modifiers, etc.
Returns: mixed
Get feed type
Returns: string
Renders values as JSON
Parameter Name | Type | Description |
---|---|---|
$nameOrModel | string|\Model | The |
$values | null|array|\ArrayAccess | Values |
Returns: string The script output.
Set feed type ('rss' or 'atom')
Parameter Name | Type | Description |
---|---|---|
$feedType | string |
Returns: \FeedRenderer
Set the resolver used to map a template name to a resource the renderer may consume.
Parameter Name | Type | Description |
---|---|---|
$resolver | \Resolver |
Returns: \FeedRenderer