package Default
inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer

 Methods

Constructor

__construct(\Zend\Feed\Writer\Entry $container) 
inherited_from \Zend\Feed\Writer\Renderer\AbstractRenderer::__construct()

Parameters

$container

\Zend\Feed\Writer\Entry

Constructor

__construct(\Zend\Feed\Writer\AbstractFeed $container) 
Inherited

Parameters

$container

\Zend\Feed\Writer\AbstractFeed

Get data container of items being rendered

getDataContainer() : \Zend\Feed\Writer\AbstractFeed
Inherited

Returns

\Zend\Feed\Writer\AbstractFeed

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\AbstractRenderer
Inherited

Parameters

$bool

boolean

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Returns

\Zend\Feed\Writer\Renderer\AbstractRenderer

Render atom entry

render() : \Zend\Feed\Writer\Renderer\Entry\Atom
inherited_from \Zend\Feed\Writer\Renderer\RendererInterface::render()

Returns

\Zend\Feed\Writer\Renderer\Entry\Atom

Save XML to string

saveXml() : string
Inherited

Returns

string

Set feed encoding

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

Parameters

$enc

string

Returns

\Zend\Feed\Writer\Renderer\AbstractRenderer

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\Writer

_loadExtensions() : void
Inherited

Load a HTML string and attempt to normalise to XML

_loadXhtml($content) 

Parameters

$content

Set entry authors

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set entry categories

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set entry content

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Set date entry was created

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set date entry was modified

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Set entry description

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set entry enclosure

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set entry identifier

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Append Source element (Atom 1.0 Feed Metadata)

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Set entry title

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

Parameters

$dom

\DOMDocument

$root

\DOMElement

Exceptions

\Zend\Feed\Writer\Exception\InvalidArgumentException

Validate a URI using the tag scheme (RFC 4151)

_validateTagUri(string $id) : boolean

Parameters

$id

string

Returns

boolean

 Properties

 

$container

$container : \Zend\Feed\Writer\AbstractFeed

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