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

package Default

 Methods

Return the template engine object, if any

getEngine() : mixed

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.

inherited_from \Zend\View\Renderer\RendererInterface::getEngine()

Returns

mixed

Get feed type

getFeedType() : string

Returns

string

Renders values as JSON

render(string|\Zend\View\Model\ModelInterface $nameOrModel, null|array|\ArrayAccess $values = null) : string
todo Determine what use case exists for accepting only $nameOrModel
inherited_from \Zend\View\Renderer\RendererInterface::render()

Parameters

$nameOrModel

string\Zend\View\Model\ModelInterface

The script/resource process, or a view model

$values

nullarray\ArrayAccess

Values to use during rendering

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

stringThe script output.

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

setFeedType(string $feedType) : \Zend\View\Renderer\FeedRenderer

Parameters

$feedType

string

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Renderer\FeedRenderer

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

setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Zend\View\Renderer\FeedRenderer
todo Determine use case for resolvers for feeds
inherited_from \Zend\View\Renderer\RendererInterface::setResolver()

Parameters

$resolver

\Zend\View\Resolver\ResolverInterface

Returns

\Zend\View\Renderer\FeedRenderer

 Properties

 

'rss' or 'atom'; defaults to 'rss'

$feedType : string

Default

'rss'
 

$resolver

$resolver : \Zend\View\Resolver\ResolverInterface

Default