Zend Framework
3.0
|
Public Member Functions | |
__construct ($container) | |
Constructor. | |
saveXml () | |
Save XML to string. | |
getDomDocument () | |
Get DOM document. | |
getElement () | |
Get document element from DOM. | |
getDataContainer () | |
Get data container of items being rendered. | |
setEncoding ($enc) | |
Set feed encoding. | |
getEncoding () | |
Get feed encoding. | |
ignoreExceptions ($bool=true) | |
Indicate whether or not to ignore exceptions. | |
getExceptions () | |
Get exception list. | |
setType ($type) | |
Set the current feed type being exported to "rss" or "atom". | |
getType () | |
Retrieve the current or last feed type exported. | |
setRootElement (DOMElement $root) | |
Sets the absolute root element for the XML feed being generated. | |
getRootElement () | |
Retrieve the absolute root element for the XML feed being generated. | |
Protected Member Functions | |
_loadExtensions () | |
Load extensions from Zend. | |
Protected Attributes | |
$extensions = [] | |
$container = null | |
$dom = null | |
$ignoreExceptions = false | |
$exceptions = [] | |
$encoding = 'UTF-8' | |
$type = null | |
$rootElement = null | |
__construct | ( | $container | ) |
Constructor.
Writer\AbstractFeed | $container |
|
protected |
Load extensions from Zend.
getDataContainer | ( | ) |
Get data container of items being rendered.
getDomDocument | ( | ) |
Get DOM document.
getElement | ( | ) |
Get document element from DOM.
getEncoding | ( | ) |
Get feed encoding.
getExceptions | ( | ) |
Get exception list.
getRootElement | ( | ) |
Retrieve the absolute root element for the XML feed being generated.
getType | ( | ) |
Retrieve the current or last feed type exported.
ignoreExceptions | ( | $bool = true | ) |
Indicate whether or not to ignore exceptions.
bool | $bool |
Writer\Exception\InvalidArgumentException |
saveXml | ( | ) |
Save XML to string.
setEncoding | ( | $enc | ) |
setRootElement | ( | DOMElement | $root | ) |
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 ;).
DOMElement | $root |
setType | ( | $type | ) |
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.
string | $type |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |