Methods
Constructor
__construct(\Zend\Feed\Writer\Entry $container)
Get data container containing feed items
getDataContainer() : mixed
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getDataContainer() |
Returns
mixed
Get DOM document
getDomDocument() : \DOMDocument
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getDomDocument() |
Returns
Get document element from DOM
getElement() : \DOMElement
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getElement() |
Returns
Get feed encoding
getEncoding() : string
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::getEncoding() |
Returns
string
Get list of thrown exceptions
getExceptions() : array
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getExceptions() |
Returns
array
Retrieve the absolute root element for the XML feed being generated.
getRootElement() : \DOMElement
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getRootElement() |
Returns
Retrieve the current or last feed type exported.
getType() : string
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::getType() |
Returns
string
Value will be "rss" or "atom"
Should exceptions be ignored?
ignoreExceptions() : mixed
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::ignoreExceptions() |
Exceptions
Returns
mixed
Save feed and/or entry to XML and return string
saveXml() : string
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::saveXml() |
Returns
string
Sets the absolute root element for the XML feed being generated.
setRootElement(\DOMElement $root)
Inherited
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 ;).
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::setRootElement() |
Parameters
Set the current feed type being exported to "rss" or "atom".
setType(string $type)
Inherited
This allows
other objects to gracefully choose whether to execute or not, depending
on their appropriateness for the current type, e.g. renderers.
inherited_from |
\Zend\Feed\Writer\Renderer\RendererInterface::setType() |
Parameters
$type
string
Load extensions from Zend\Feed\Writer\Writer
_loadExtensions() : void
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::_loadExtensions() |
Load a HTML string and attempt to normalise to XML
_loadXhtml($content)
Set entry authors
_setAuthors(\DOMDocument $dom, \DOMElement $root) : void
Set entry categories
_setCategories(\DOMDocument $dom, \DOMElement $root) : void
Set entry content
_setContent(\DOMDocument $dom, \DOMElement $root) : void
Set date entry was created
_setDateCreated(\DOMDocument $dom, \DOMElement $root) : void
Set date entry was modified
_setDateModified(\DOMDocument $dom, \DOMElement $root) : void
Set entry description
_setDescription(\DOMDocument $dom, \DOMElement $root) : void
Set entry enclosure
_setEnclosure(\DOMDocument $dom, \DOMElement $root) : void
Set entry identifier
_setId(\DOMDocument $dom, \DOMElement $root) : void
_setLink()
_setLink(\DOMDocument $dom, \DOMElement $root)
Append Source element (Atom 1.0 Feed Metadata)
_setSource(\DOMDocument $dom, \DOMElement $root) : void
Set entry title
_setTitle(\DOMDocument $dom, \DOMElement $root) : void
Validate a URI using the tag scheme (RFC 4151)
_validateTagUri(string $id) : bool
Parameters
$id
string
Returns
bool
Properties
$dom
$dom : \DOMDocument
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$dom |
Encoding of all text values
$encoding : string
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$encoding |
$exceptions
$exceptions : array
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$exceptions |
Extensions
$extensions : array
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$extensions |
$ignoreExceptions
$ignoreExceptions : bool
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$ignoreExceptions |
$rootElement
$rootElement : \DOMElement
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$rootElement |
Holds the value "atom" or "rss" depending on the feed type set when
when last exported.
$type : string
Inherited
inherited_from |
\Zend\Feed\Writer\Renderer\AbstractRenderer::$$type |