Feed/Reader/Extension/Atom/Feed.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: Feed.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Feed_Reader_Extension_Atom_Feed
- Parent(s)
- \Zend_Feed_Reader_Extension_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_Extension_FeedAbstract::$$_data


\DOMDocument $_domDocument = null
null
Details- Type
- \DOMDocument
- Inherited_from
- \Zend_Feed_Reader_Extension_FeedAbstract::$$_domDocument


\DOMXPath $_xpath = null
null
Details- Type
- \DOMXPath
- Inherited_from
- \Zend_Feed_Reader_Extension_FeedAbstract::$$_xpath


string $_xpathPrefix = ''
''
Details- Type
- string
- Inherited_from
- \Zend_Feed_Reader_Extension_FeedAbstract::$$_xpathPrefix
Methods


__construct( $dom, string $type = null, $xpath = null) : void
Name | Type | Description |
---|---|---|
$dom | ||
$type | string | Feed type |
$xpath |


_absolutiseUri( $link) : void
Attempt to absolutise the URI, i.e.
if a relative URI apply the xml:base value as a prefix to turn into an absolute URI.
Name | Type | Description |
---|---|---|
$link |


_getAuthor(\DOMElement $element) : string
Get an author entry in RSS format
Name | Type | Description |
---|---|---|
$element | \DOMElement |
Type | Description |
---|---|
string |


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


getBaseUrl() : string | null
Get the base URI of the feed (if set).
Type | Description |
---|---|
string | null |


getCategories() : \Zend_Feed_Reader_Collection_Category
Get all categories
Type | Description |
---|---|
\Zend_Feed_Reader_Collection_Category |


getDateCreated() : \Zend_Date | null
Get the feed creation date
Type | Description |
---|---|
\Zend_Date | null |


getDateModified() : \Zend_Date | null
Get the feed modification date
Type | Description |
---|---|
\Zend_Date | null |


getEncoding() : string
Get the Feed's encoding
Inherited from: \Zend_Feed_Reader_Extension_FeedAbstract::getEncoding()Type | Description |
---|---|
string |


getHubs() : array | null
Get an array of any supported Pusubhubbub endpoints
Type | Description |
---|---|
array | null |


getXpath() : string
Get the DOMXPath object
Inherited from: \Zend_Feed_Reader_Extension_FeedAbstract::getXpath()Type | Description |
---|---|
string |


getXpathPrefix() : string
Get the XPath prefix
Inherited from: \Zend_Feed_Reader_Extension_FeedAbstract::getXpathPrefix()Type | Description |
---|---|
string |


setXpath(\DOMXPath $xpath) : \Zend_Feed_Reader_Extension_EntryAbstract
Name | Type | Description |
---|---|---|
$xpath | \DOMXPath |
Type | Description |
---|---|
\Zend_Feed_Reader_Extension_EntryAbstract |


setXpathPrefix( $prefix) : \Zend_Feed_Reader_Feed_Atom
Set the XPath prefix
Inherited from: \Zend_Feed_Reader_Extension_FeedAbstract::setXpathPrefix()Name | Type | Description |
---|---|---|
$prefix |
Type | Description |
---|---|
\Zend_Feed_Reader_Feed_Atom |


toArray() : array
Return the feed as an array
Inherited from: \Zend_Feed_Reader_Extension_FeedAbstract::toArray()Type | Description |
---|---|
array |