Feed/Reader/Feed/Atom/Source.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_Reader
- Version
- $Id: Source.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Feed_Reader_Feed_Atom_Source
- Parent(s)
- \Zend_Feed_Reader_Feed_Atom < \Zend_Feed_Reader_FeedAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_data = array()array()Details- Type
- array
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_data
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_data

\DOMDocument $_domDocument = nullnullDetails- Type
- \DOMDocument
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_domDocument
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_domDocument

array $_entries = array()array()Details- Type
- array
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_entries
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_entries

int $_entriesKey = 00Details- Type
- int
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_entriesKey
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_entriesKey

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

string $_originalSourceUri = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_originalSourceUri
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_originalSourceUri

\DOMXPath $_xpath = nullnullDetails- Type
- \DOMXPath
- Inherited_from
- \Zend_Feed_Reader_FeedAbstract::$$_xpath
- Inherited_from
- \Zend_Feed_Reader_Feed_Atom::$$_xpath
Methods

__call( $method, $args) : void| Name | Type | Description |
|---|---|---|
| $method | ||
| $args |

__construct(\DOMElement $source, string $xpathPrefix, string $type = \Zend_Feed_Reader::TYPE_ATOM_10) : voidConstructor: Create a Source object which is largely just a normal Zend_Feed_Reader_FeedAbstract object only designed to retrieve feed level metadata from an Atom entry's source element.
| Name | Type | Description |
|---|---|---|
| $source | \DOMElement | |
| $xpathPrefix | string | Passed from parent Entry object |
| $type | string | Nearly always Atom 1.0 |

_loadExtensions() : void
_registerNamespaces() : voidRegister the default namespaces for the current feed format
Inherited from: \Zend_Feed_Reader_Feed_Atom::_registerNamespaces()
getAuthor(int $index = 0) : string | null| Name | Type | Description |
|---|---|---|
| $index | int |
| Type | Description |
|---|---|
| string | null |

getCategories() : \Zend_Feed_Reader_Collection_Category| Type | Description |
|---|---|
| \Zend_Feed_Reader_Collection_Category |

getDateModified() : string | nullGet the feed modification date
Inherited from: \Zend_Feed_Reader_Feed_Atom::getDateModified()| Type | Description |
|---|---|
| string | null |

getDomDocument() : \DOMDocumentGet the DOM
Inherited from: \Zend_Feed_Reader_FeedAbstract::getDomDocument()\Zend_Feed_Reader_Feed_Atom::getDomDocument()| Type | Description |
|---|---|
| \DOMDocument |

getElement() : \DOMElementGet the DOMElement representing the items/feed element
Inherited from: \Zend_Feed_Reader_FeedAbstract::getElement()\Zend_Feed_Reader_Feed_Atom::getElement()| Type | Description |
|---|---|
| \DOMElement |

getEncoding() : stringGet the Feed's encoding
Inherited from: \Zend_Feed_Reader_FeedAbstract::getEncoding()\Zend_Feed_Reader_Feed_Atom::getEncoding()| Type | Description |
|---|---|
| string |

getExtension(string $name) : \Zend_Feed_Reader_Extension_FeedAbstractReturn an Extension object with the matching name (postfixed with _Feed)
Inherited from: \Zend_Feed_Reader_FeedAbstract::getExtension()\Zend_Feed_Reader_Feed_Atom::getExtension()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Extension_FeedAbstract |

getExtensions() : void
getHubs() : array | nullGet an array of any supported Pusubhubbub endpoints
Inherited from: \Zend_Feed_Reader_Feed_Atom::getHubs()| Type | Description |
|---|---|
| array | null |

getLastBuildDate() : string | nullGet the feed lastBuild date.
Inherited from: \Zend_Feed_Reader_Feed_Atom::getLastBuildDate()This is not implemented in Atom.
| Type | Description |
|---|---|
| string | null |

getOriginalSourceUri() : string | nullGet an original source URI for the feed being parsed.
Inherited from: \Zend_Feed_Reader_FeedAbstract::getOriginalSourceUri()\Zend_Feed_Reader_Feed_Atom::getOriginalSourceUri()Returns null if unset or the feed was not imported from a URI.
| Type | Description |
|---|---|
| string | null |

getType() : stringGet the feed type
Inherited from: \Zend_Feed_Reader_FeedAbstract::getType()\Zend_Feed_Reader_Feed_Atom::getType()| Type | Description |
|---|---|
| string |

getXpath() : \DOMXPathGet the DOMXPath object for this feed
Inherited from: \Zend_Feed_Reader_FeedAbstract::getXpath()\Zend_Feed_Reader_Feed_Atom::getXpath()| Type | Description |
|---|---|
| \DOMXPath |

saveXml() : stringGet feed as xml
Inherited from: \Zend_Feed_Reader_FeedAbstract::saveXml()\Zend_Feed_Reader_Feed_Atom::saveXml()| Type | Description |
|---|---|
| string |

setOriginalSourceUri(string $uri) : voidSet an original source URI for the feed being parsed.
Inherited from: \Zend_Feed_Reader_FeedAbstract::setOriginalSourceUri()\Zend_Feed_Reader_Feed_Atom::setOriginalSourceUri()This value is returned from getFeedLink() method if the feed does not carry a self-referencing URI.
| Name | Type | Description |
|---|---|---|
| $uri | string |