Feed/Reader/FeedAbstract.php
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 license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Reader
- Version
- $Id$
\Zend_Feed_Reader_FeedAbstract
Package: Zend_Feed_Reader










- Implements
- Children
- \Zend_Feed_Reader_Feed_Rss
- \Zend_Feed_Reader_Feed_Atom
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

\DOMDocument $_domDocument = nullParsed feed data in the shape of a DOMDocument
Default value
nullDetails- Type
- \DOMDocument

int $_entriesKey = 0A pointer for the iterator to keep track of the entries array
Default value
0Details- Type
- int

string $_originalSourceUri = nullOriginal Source URI (set if imported from a URI)
Default value
nullDetails- Type
- string

\DOMXPath $_xpath = nullThe base XPath query used to retrieve feed data
Default value
nullDetails- Type
- \DOMXPath
Methods

__construct( $domDocument, string $type = null) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $domDocument | ||
| $type | string | Feed type |

count() : intGet the number of feed entries.
Required by the Iterator interface.
Returns| Type | Description |
|---|---|
| int |

current() : \Zend_Feed_Reader_EntryInterfaceReturn the current entry
Returns
| Type | Description |
|---|---|
| \Zend_Feed_Reader_EntryInterface |

getElement() : \DOMElementGet the DOMElement representing the items/feed element
Returns
| Type | Description |
|---|---|
| \DOMElement |

getExtension(string $name) : \Zend_Feed_Reader_Extension_FeedAbstractReturn an Extension object with the matching name (postfixed with _Feed)
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_Extension_FeedAbstract |

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

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