category Zend
package Zend_Feed_Writer
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Get data container containing feed items

getDataContainer() : mixed

Returns

mixed

Get DOM document

getDomDocument() : \DOMDocument

Returns

\DOMDocument

Get document element from DOM

getElement() : \DOMElement

Returns

\DOMElement

Get list of thrown exceptions

getExceptions() : array

Returns

array

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

getRootElement() : \DOMElement

Returns

\DOMElement

Retrieve the current or last feed type exported.

getType() : string

Returns

stringValue will be "rss" or "atom"

Should exceptions be ignored?

ignoreExceptions() : mixed

Returns

mixed

Render feed/entry

render() : void

Save feed and/or entry to XML and return string

saveXml() : string

Returns

string

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 ;).

setRootElement(\DOMElement $root) 

Parameters

$root

\DOMElement

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.

setType(string $type) 

Parameters

$type

string