Class FeedRenderer

Summary

Fully Qualified Name: Laminas\View\Renderer\FeedRenderer
Implements: RendererInterface

Description

Class for Laminas\View\Strategy\FeedStrategy compatible template engine implementations

Methods

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

Method Details

getEngine()

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

getFeedType()

Get feed type

Returns: string

render()

Renders values as JSON

Parameter Name Type Description
$nameOrModel string|\Model The
$values null|array|\ArrayAccess Values

Returns: string The script output.

setFeedType()

Set feed type ('rss' or 'atom')

Parameter Name Type Description
$feedType string

Returns: \FeedRenderer

setResolver()

Set the resolver used to map a template name to a resource the renderer may consume.

Parameter Name Type Description
$resolver \Resolver

Returns: \FeedRenderer

Top