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_Entry $container) : void
inherited_from |
\Zend_Feed_Writer_Renderer_RendererAbstract::__construct() |
Parameters
$container
\Zend_Feed_Writer_Entry
Constructor
__construct(mixed $container) : void
Inherited
Parameters
$container
mixed
Get data container of items being rendered
getDataContainer() : mixed
Inherited
Get DOM document
getDomDocument() : \DOMDocument
Inherited
Get document element from DOM
getElement() : \DOMElement
Inherited
Get feed encoding
getEncoding() : string
Inherited
Get exception list
getExceptions() : array
Inherited
Retrieve the absolute root element for the XML feed being generated.
getRootElement() : \DOMElement
Inherited
Retrieve the current or last feed type exported.
getType() : string
Inherited
Returns
string
Value 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
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
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
Load extensions from Zend_Feed_Writer
_loadExtensions() : void
Inherited
Load a HTML string and attempt to normalise to XML
_loadXhtml($content)
Set entry authors
_setAuthors(\DOMDocument $dom, \DOMElement $root) : void
Parameters
$dom
\DOMDocument
$root
\DOMElement
Set entry cateories
_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
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
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
_setLink()
_setLink(\DOMDocument $dom, \DOMElement $root)
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
Validate a URI using the tag scheme (RFC 4151)
_validateTagUri(string $id) : boolean
Parameters
$id
string
Returns
boolean
Properties
$_container
$_container : mixed
$_dom
$_dom : \DOMDocument
Encoding of all text values
$_encoding : string
$_exceptions
$_exceptions : array
Extensions
$_extensions : array
$_ignoreExceptions
$_ignoreExceptions : boolean
$_rootElement
$_rootElement : \DOMElement
Holds the value "atom" or "rss" depending on the feed type set when
when last exported.
$_type : string