category Zend
package Zend_Feed_Writer

 Methods

Get data container containing feed items

getDataContainer() : mixed

Returns

mixed

Get DOM document

getDomDocument() : \DOMDocument

Returns

Get document element from DOM

getElement() : \DOMElement

Returns

Get list of thrown exceptions

getExceptions() : array

Returns

array

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

getRootElement() : \DOMElement

Returns

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.

setRootElement(\DOMElement $root) 

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

$root

\DOMElement

Set the current feed type being exported to "rss" or "atom".

setType(string $type) 

This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters

$type

string