Methods

Constructor

__construct(\Zend\Feed\Writer\AbstractFeed $container) 

Parameters

Get data container of items being rendered

getDataContainer() : \Zend\Feed\Writer\AbstractFeed

Get DOM document

getDomDocument() : \DOMDocument

Returns

Get document element from DOM

getElement() : \DOMElement

Returns

Get feed encoding

getEncoding() : string

Returns

string

Get exception list

getExceptions() : array

Returns

array

Retrieve the absolute root element for the XML feed being generated.

getRootElement() : \DOMElement

Returns

Retrieve the current or last feed type exported.

getType() : string

Returns

stringValue will be "rss" or "atom"

Indicate whether or not to ignore exceptions

ignoreExceptions(bool $bool) : \Zend\Feed\Writer\Renderer\AbstractRenderer

Save XML to string

saveXml() : string

Returns

string

Set feed encoding

setEncoding(string $enc) : \Zend\Feed\Writer\Renderer\AbstractRenderer

Parameters

$enc

string

Returns

Sets the absolute root element for the XML feed being generated.

setRootElement(\DOMElement $root) 

This helps simplify the appending of namespace declarations, but also ensures namespaces are added to the root element - not scattered across the entire XML file - may assist namespace unsafe parsers and looks pretty ;).

Parameters

$root

\DOMElement

Set the current feed type being exported to "rss" or "atom".

setType(string $type) 

This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters

$type

string

Load extensions from Zend\Feed\Writer\Writer

_loadExtensions() : void

 Properties

 

$container

$container : \Zend\Feed\Writer\AbstractFeed

 

$dom

$dom : \DOMDocument

 

Encoding of all text values

$encoding : string

 

$exceptions

$exceptions : array

 

Extensions

$extensions : array

 

$ignoreExceptions

$ignoreExceptions : bool

 

$rootElement

$rootElement : \DOMElement

 

Holds the value "atom" or "rss" depending on the feed type set when when last exported.

$type : string