Feed/Writer/Renderer/Entry/Atom.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Writer
- Version
- $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Feed_Writer_Renderer_Entry_Atom
- Implements
- \Zend_Feed_Writer_Renderer_RendererInterface
- Parent(s)
- \Zend_Feed_Writer_Renderer_RendererAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

mixed $_container = nullnullDetails- Type
- mixed
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_container

\DOMDocument $_dom = nullnullDetails- Type
- \DOMDocument
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_dom

string $_encoding = 'UTF-8''UTF-8'Details- Type
- string
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_encoding

array $_exceptions = array()array()Details- Type
- array
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_exceptions

array $_extensions = array()array()Details- Type
- array
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_extensions

bool $_ignoreExceptions = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_ignoreExceptions

\DOMElement $_rootElement = nullnullDetails- Type
- \DOMElement
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_rootElement

string $_type = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Feed_Writer_Renderer_RendererAbstract::$$_type
Methods

__construct(\Zend_Feed_Writer_Entry $container) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $container | \Zend_Feed_Writer_Entry |

_loadExtensions() : voidLoad extensions from Zend_Feed_Writer
Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::_loadExtensions()
_loadXhtml( $content) : voidLoad a HTML string and attempt to normalise to XML
| Name | Type | Description |
|---|---|---|
| $content |

_setAuthors(\DOMDocument $dom, \DOMElement $root) : voidSet entry authors
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setCategories(\DOMDocument $dom, \DOMElement $root) : voidSet entry cateories
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setContent(\DOMDocument $dom, \DOMElement $root) : voidSet entry content
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setDateCreated(\DOMDocument $dom, \DOMElement $root) : voidSet date entry was created
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setDateModified(\DOMDocument $dom, \DOMElement $root) : voidSet date entry was modified
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setDescription(\DOMDocument $dom, \DOMElement $root) : voidSet entry description
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setEnclosure(\DOMDocument $dom, \DOMElement $root) : voidSet entry enclosure
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setId(\DOMDocument $dom, \DOMElement $root) : voidSet entry identifier
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setSource(\DOMDocument $dom, \DOMElement $root) : voidAppend Source element (Atom 1.0 Feed Metadata)
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_setTitle(\DOMDocument $dom, \DOMElement $root) : voidSet entry title
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument | |
| $root | \DOMElement |

_validateTagUri(string $id) : boolValidate a URI using the tag scheme (RFC 4151)
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| bool |

getDataContainer() : mixedGet data container containing feed items
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getDataContainer()| Type | Description |
|---|---|
| mixed |

getDomDocument() : \DOMDocumentGet DOM document
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getDomDocument()| Type | Description |
|---|---|
| \DOMDocument |

getElement() : \DOMElementGet document element from DOM
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getElement()| Type | Description |
|---|---|
| \DOMElement |

getEncoding() : stringGet feed encoding
Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getEncoding()| Type | Description |
|---|---|
| string |

getExceptions() : arrayGet list of thrown exceptions
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getExceptions()| Type | Description |
|---|---|
| array |

getRootElement() : \DOMElementRetrieve the absolute root element for the XML feed being generated.
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getRootElement()| Type | Description |
|---|---|
| \DOMElement |

getType() : stringRetrieve the current or last feed type exported.
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::getType()| Type | Description |
|---|---|
| string | Value will be "rss" or "atom" |

ignoreExceptions() : mixedShould exceptions be ignored?
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::ignoreExceptions()| Type | Description |
|---|---|
| mixed |

render() : \Zend_Feed_Writer_Renderer_Entry_AtomRender atom entry
| Type | Description |
|---|---|
| \Zend_Feed_Writer_Renderer_Entry_Atom |

saveXml() : stringSave feed and/or entry to XML and return string
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::saveXml()| Type | Description |
|---|---|
| string |

setEncoding(string $enc) : \Zend_Feed_Writer_Renderer_RendererAbstractSet feed encoding
Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::setEncoding()| Name | Type | Description |
|---|---|---|
| $enc | string |
| Type | Description |
|---|---|
| \Zend_Feed_Writer_Renderer_RendererAbstract |

setRootElement(\DOMElement $root) : voidSets the absolute root element for the XML feed being generated.
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::setRootElement()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 ;).
| Name | Type | Description |
|---|---|---|
| $root | \DOMElement |

setType(string $type) : voidSet the current feed type being exported to "rss" or "atom".
Inherited from: \Zend_Feed_Writer_Renderer_RendererInterface::setType()This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.
| Name | Type | Description |
|---|---|---|
| $type | string |