category Zend
package Zend_Feed_Writer

 Methods

Constructor

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

Parameters

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()
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::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

stringValue will be "rss" or "atom"

Should exceptions be ignored?

ignoreExceptions() : mixed
Inherited

inherited_from \Zend\Feed\Writer\Renderer\RendererInterface::ignoreExceptions()

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Returns

mixed

Render Atom Feed Metadata (Source element)

render() : \Zend\Feed\Writer\Renderer\Feed\Atom

Save feed and/or entry to XML and return string

saveXml() : string
Inherited

inherited_from \Zend\Feed\Writer\Renderer\RendererInterface::saveXml()

Returns

string

Set feed encoding

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

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::setEncoding()
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::setEncoding()

Parameters

$enc

string

Returns

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

$root

\DOMElement

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

_loadExtensions() : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::_loadExtensions()
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_loadExtensions()

Set feed authors

_setAuthors(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setAuthors()

Parameters

$root

\DOMElement

Set base URL to feed links

_setBaseUrl(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setBaseUrl()

Parameters

$root

\DOMElement

Set feed categories

_setCategories(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setCategories()

Parameters

$root

\DOMElement

Set feed copyright

_setCopyright(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setCopyright()

Parameters

$root

\DOMElement

Set date feed was created

_setDateCreated(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDateCreated()

Parameters

$root

\DOMElement

Set date feed was last modified

_setDateModified(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDateModified()

Parameters

$root

\DOMElement

Exceptions

\Zend\Feed\Exception\InvalidArgumentException

Set feed description

_setDescription(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDescription()

Parameters

$root

\DOMElement

Set feed generator string

_setGenerator(\DOMDocument $dom, \DOMElement $root) : void

Parameters

$root

\DOMElement

Set hubs to which this feed pushes

_setHubs(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setHubs()

Parameters

$root

\DOMElement

Set feed identifier

_setId(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setId()

Parameters

$root

\DOMElement

Exceptions

\Zend\Feed\Exception\InvalidArgumentException

Set feed level logo (image)

_setImage(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setImage()

Parameters

$root

\DOMElement

Set feed language

_setLanguage(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setLanguage()

Parameters

$root

\DOMElement

Set feed title

_setTitle(\DOMDocument $dom, \DOMElement $root) : void
Inherited

inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setTitle()

Parameters

$root

\DOMElement

Exceptions

\Zend\Feed\Exception\InvalidArgumentException

 Properties

 

$container

$container : \Zend\Feed\Writer\AbstractFeed
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$container
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$container
 

$dom

$dom : \DOMDocument
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$dom
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$dom
 

Encoding of all text values

$encoding : string
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$encoding
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$encoding
 

$exceptions

$exceptions : array
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$exceptions
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$exceptions
 

Extensions

$extensions : array
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$extensions
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$extensions
 

$ignoreExceptions

$ignoreExceptions : bool
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$ignoreExceptions
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$ignoreExceptions
 

$rootElement

$rootElement : \DOMElement
Inherited

inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::$$rootElement
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$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
inherited_from \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::$$type