1537. Class

1537.1. Zend\Feed\Writer\Renderer\AbstractRenderer

1537.1.1. Methods

1537.1.1.1. __construct

__construct()

Constructor

Parameters:WriterAbstractFeed

1537.1.1.2. saveXml

saveXml()

Save XML to string

Return type:string

1537.1.1.3. getDomDocument

getDomDocument()

Get DOM document

Return type:DOMDocument

1537.1.1.4. getElement

getElement()

Get document element from DOM

Return type:DOMElement

1537.1.1.5. getDataContainer

getDataContainer()

Get data container of items being rendered

Return type:WriterAbstractFeed

1537.1.1.6. setEncoding

setEncoding()

Set feed encoding

Parameters:string
Return type:AbstractRenderer

1537.1.1.7. getEncoding

getEncoding()

Get feed encoding

Return type:string

1537.1.1.8. ignoreExceptions

ignoreExceptions()

Indicate whether or not to ignore exceptions

Parameters:bool
Return type:AbstractRenderer
Throws :WriterExceptionInvalidArgumentException

1537.1.1.9. getExceptions

getExceptions()

Get exception list

Return type:array

1537.1.1.10. setType

setType()

Set the current feed type being exported to “rss” or “atom”. This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters:string

1537.1.1.11. getType

getType()

Retrieve the current or last feed type exported.

Return type:string Value will be “rss” or “atom”

1537.1.1.12. setRootElement

setRootElement()

Sets the absolute root element for the XML feed being generated. 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:DOMElement

1537.1.1.13. getRootElement

getRootElement()

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

Return type:DOMElement

1537.1.1.14. _loadExtensions

_loadExtensions()

Load extensions from Zend_Feed_Writer

Return type:void