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

 Methods

Constructor

__construct(\Zend_Feed_Writer_Feed $container) : void
inherited_from \Zend_Feed_Writer_Renderer_RendererAbstract::__construct()

Parameters

$container

\Zend_Feed_Writer_Feed

Constructor

__construct(mixed $container) : void
Inherited

Parameters

$container

mixed

Get data container of items being rendered

getDataContainer() : mixed
Inherited

Returns

mixed

Get DOM document

getDomDocument() : \DOMDocument
Inherited

Returns

\DOMDocument

Get document element from DOM

getElement() : \DOMElement
Inherited

Returns

\DOMElement

Get feed encoding

getEncoding() : string
Inherited

Returns

string

Get exception list

getExceptions() : array
Inherited

Returns

array

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

getRootElement() : \DOMElement
Inherited

Returns

\DOMElement

Retrieve the current or last feed type exported.

getType() : string
Inherited

Returns

stringValue will be "rss" or "atom"

Indicate whether or not to ignore exceptions

ignoreExceptions(boolean $bool = true) : \Zend_Feed_Writer_Renderer_RendererAbstract
Inherited

Parameters

$bool

boolean

Returns

\Zend_Feed_Writer_Renderer_RendererAbstract

Save XML to string

saveXml() : string
Inherited

Returns

string

Set feed encoding

setEncoding(string $enc) : \Zend_Feed_Writer_Renderer_RendererAbstract
Inherited

Parameters

$enc

string

Returns

\Zend_Feed_Writer_Renderer_RendererAbstract

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) 
Inherited

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) 
Inherited

Parameters

$type

string

Load extensions from Zend_Feed_Writer

_loadExtensions() : void
Inherited

Set feed authors

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set base URL to feed links

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed cateories

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed copyright

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set date feed was created

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set date feed was last modified

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed description

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed generator string

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set hubs to which this feed pushes

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed level icon (image)

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed identifier

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed level logo (image)

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed language

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set feed title

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

 Properties

 

$_container

$_container : mixed

Default

null
 

$_dom

$_dom : \DOMDocument

Default

null
 

Encoding of all text values

$_encoding : string

Default

'UTF-8'
 

$_exceptions

$_exceptions : array

Default

array()
 

Extensions

$_extensions : array

Default

array()
 

$_ignoreExceptions

$_ignoreExceptions : boolean

Default

false
 

$_rootElement

$_rootElement : \DOMElement

Default

null
 

Holds the value "atom" or "rss" depending on the feed type set when when last exported.

$_type : string

Default

null