Feed/Reader/FeedAbstract.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: FeedAbstract.php 25024 2012-07-30 15:08:15Z rob $
\Zend_Feed_Reader_FeedAbstract
- Implements
- \Zend_Feed_Reader_FeedInterface
- Children
- \Zend_Feed_Reader_Feed_Rss
- \Zend_Feed_Reader_Feed_Atom
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


\DOMDocument $_domDocument = null
null
Details- Type
- \DOMDocument


int $_entriesKey = 0
0
Details- Type
- int


string $_originalSourceUri = null
null
Details- Type
- string


\DOMXPath $_xpath = null
null
Details- Type
- \DOMXPath
Methods


__construct(\DomDocument $domDocument, string $type = null) : void
Constructor
Name | Type | Description |
---|---|---|
$domDocument | \DomDocument | The DOM object for the feed's XML |
$type | string | Feed type |


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


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


getAuthor(int $index = 0) : string | null
Name | Type | Description |
---|---|---|
$index | int |
Type | Description |
---|---|
string | null |


getAuthors() : array
Get an array with feed authors
Inherited from: \Zend_Feed_Reader_FeedInterface::getAuthors()Type | Description |
---|---|
array |


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


getDateCreated() : string | null
Get the feed creation date
Inherited from: \Zend_Feed_Reader_FeedInterface::getDateCreated()Type | Description |
---|---|
string | null |


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


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


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


getGenerator() : string | null
Get the feed generator entry
Inherited from: \Zend_Feed_Reader_FeedInterface::getGenerator()Type | Description |
---|---|
string | null |


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.
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.
Name | Type | Description |
---|---|---|
$uri | string |