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 = nullnullDetails- Type
- \DOMDocument

int $_entriesKey = 00Details- Type
- int

string $_originalSourceUri = nullnullDetails- Type
- string

\DOMXPath $_xpath = nullnullDetails- Type
- \DOMXPath
Methods

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

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

current() : \Zend_Feed_Reader_EntryInterfaceReturn 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() : arrayGet 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 | nullGet the feed creation date
Inherited from: \Zend_Feed_Reader_FeedInterface::getDateCreated()| Type | Description |
|---|---|
| string | null |

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

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

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

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

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