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 = null
Parsed feed data in the shape of a DOMDocument
Default value
null
Details- Type
- \DOMDocument


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


string $_originalSourceUri = null
Original Source URI (set if imported from a URI)
Default value
null
Details- Type
- string


\DOMXPath $_xpath = null
The base XPath query used to retrieve feed data
Default value
null
Details- Type
- \DOMXPath
Methods


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


count() : int
Get the number of feed entries.
Required by the Iterator interface.
ReturnsType | Description |
---|---|
int |


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


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


getExtension(string $name) : \Zend_Feed_Reader_Extension_FeedAbstract
Return 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 | null
Get 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) : void
Set 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 |