Feed/Writer/Renderer/Feed/Atom/AtomAbstract.php

Show: inherited
Table of Contents

Zend Framework

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 [email protected] 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: AtomAbstract.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Feed_Writer_Renderer_Feed_Atom_AtomAbstract

Package: Zend\Feed\Writer

Parent(s)
\Zend_Feed_Writer_Renderer_RendererAbstract
Children
\Zend_Feed_Writer_Renderer_Feed_Atom_Source
\Zend_Feed_Writer_Renderer_Feed_Atom
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedmixed $_container = null
Default valuenullDetails
Type
mixed
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_container  
Propertyprotected\DOMDocument $_dom = null
Default valuenullDetails
Type
\DOMDocument
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_dom  
Propertyprotectedstring $_encoding = 'UTF-8'
inherited

Encoding of all text values

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::$$_encoding
Default value'UTF-8'Details
Type
string
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_encoding  
Propertyprotectedarray $_exceptions = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_exceptions  
Propertyprotectedarray $_extensions = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_extensions  
Propertyprotectedbool $_ignoreExceptions = false
Default valuefalseDetails
Type
bool
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_ignoreExceptions  
Propertyprotected\DOMElement $_rootElement = null
Default valuenullDetails
Type
\DOMElement
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_rootElement  
Propertyprotectedstring $_type = null
inherited

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

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::$$_type
Default valuenullDetails
Type
string
Inherited_from
\Zend_Feed_Writer_Renderer_RendererAbstract::$$_type  

Methods

methodpublic__construct(\Zend_Feed_Writer_Feed $container) : void

Constructor

Parameters
Name Type Description
$container \Zend_Feed_Writer_Feed
methodprotected_loadExtensions() : void
inherited

Load extensions from Zend_Feed_Writer

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::_loadExtensions()
methodprotected_setAuthors(\DOMDocument $dom, \DOMElement $root) : void

Set feed authors

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setBaseUrl(\DOMDocument $dom, \DOMElement $root) : void

Set base URL to feed links

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setCategories(\DOMDocument $dom, \DOMElement $root) : void

Set feed cateories

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setCopyright(\DOMDocument $dom, \DOMElement $root) : void

Set feed copyright

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setDateCreated(\DOMDocument $dom, \DOMElement $root) : void

Set date feed was created

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setDateModified(\DOMDocument $dom, \DOMElement $root) : void

Set date feed was last modified

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setDescription(\DOMDocument $dom, \DOMElement $root) : void

Set feed description

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setFeedLinks(\DOMDocument $dom, \DOMElement $root) : void

Set feed links

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setGenerator(\DOMDocument $dom, \DOMElement $root) : void

Set feed generator string

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setHubs(\DOMDocument $dom, \DOMElement $root) : void

Set hubs to which this feed pushes

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setIcon(\DOMDocument $dom, \DOMElement $root) : void

Set feed level icon (image)

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setId(\DOMDocument $dom, \DOMElement $root) : void

Set feed identifier

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setImage(\DOMDocument $dom, \DOMElement $root) : void

Set feed level logo (image)

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setLanguage(\DOMDocument $dom, \DOMElement $root) : void

Set feed language

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setLink(\DOMDocument $dom, \DOMElement $root) : void

Set link to feed

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodprotected_setTitle(\DOMDocument $dom, \DOMElement $root) : void

Set feed title

Parameters
Name Type Description
$dom \DOMDocument
$root \DOMElement
methodpublicgetDataContainer() : mixed
inherited

Get data container of items being rendered

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getDataContainer()
Returns
Type Description
mixed
methodpublicgetDomDocument() : \DOMDocument
inherited

Get DOM document

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getDomDocument()
Returns
Type Description
\DOMDocument
methodpublicgetElement() : \DOMElement
inherited

Get document element from DOM

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getElement()
Returns
Type Description
\DOMElement
methodpublicgetEncoding() : string
inherited

Get feed encoding

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getEncoding()
Returns
Type Description
string
methodpublicgetExceptions() : array
inherited

Get exception list

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getExceptions()
Returns
Type Description
array
methodpublicgetRootElement() : \DOMElement
inherited

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

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getRootElement()
Returns
Type Description
\DOMElement
methodpublicgetType() : string
inherited

Retrieve the current or last feed type exported.

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::getType()
Returns
Type Description
string Value will be "rss" or "atom"
methodpublicignoreExceptions(bool $bool = true) : \Zend_Feed_Writer_Renderer_RendererAbstract
inherited

Indicate whether or not to ignore exceptions

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::ignoreExceptions()
Parameters
Name Type Description
$bool bool
Returns
Type Description
\Zend_Feed_Writer_Renderer_RendererAbstract
methodpublicsaveXml() : string
inherited

Save XML to string

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::saveXml()
Returns
Type Description
string
methodpublicsetEncoding(string $enc) : \Zend_Feed_Writer_Renderer_RendererAbstract
inherited

Set feed encoding

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::setEncoding()
Parameters
Name Type Description
$enc string
Returns
Type Description
\Zend_Feed_Writer_Renderer_RendererAbstract
methodpublicsetRootElement(\DOMElement $root) : void
inherited

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

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::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 ;).

Parameters
Name Type Description
$root \DOMElement
methodpublicsetType(string $type) : void
inherited

Set the current feed type being exported to "rss" or "atom".

Inherited from: \Zend_Feed_Writer_Renderer_RendererAbstract::setType()

This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters
Name Type Description
$type string
Documentation was generated by phpDocumentor 2.0.0a8.