Zend\Feed\Writer\Renderer\RendererInterface
Synopsis
interface RendererInterface
{
- // methods
- public void render()
- public string saveXml()
- public DOMDocument getDomDocument()
- public DOMElement getElement()
- public mixed getDataContainer()
- public mixed ignoreExceptions()
- public array getExceptions()
- public void setType()
- public string getType()
- public void setRootElement()
- public DOMElement getRootElement()
Methods
public
- getDataContainer() — Get data container containing feed items
- getDomDocument() — Get DOM document
- getElement() — Get document element from DOM
- getExceptions() — Get list of thrown exceptions
- getRootElement() — Retrieve the absolute root element for the XML feed being generated.
- getType() — Retrieve the current or last feed type exported.
- ignoreExceptions() — Should exceptions be ignored?
- render() — Render feed/entry
- saveXml() — Save feed and/or entry to XML and return string
- 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 ;).
- 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.