\Horde_Feed_Rss

RSS channel class

The Horde_Feed_Rss class is a concrete subclass of Horde_Feed_Base meant for representing RSS channels. It does not add any methods to its parent, just provides a classname to check against with the instanceof operator, and expects to be handling RSS-formatted data instead of Atom.

Summary

Methods
Properties
Constants
__construct()
__wakeup()
No public properties found
No constants found
_buildListItemCache()
$_uri
$_httpClient
$_listItemClassName
$_defaultNamespace
$_emptyXml
N/A
No private methods found
No private properties found
N/A

Properties

$_uri

$_uri : string

Our root ("home") URI

Type

string

$_httpClient

$_httpClient : \Horde_Http_Client

Type

\Horde_Http_Client

$_listItemClassName

$_listItemClassName : string

The classname for individual channel elements.

Type

string

$_defaultNamespace

$_defaultNamespace : string

The default namespace for RSS channels.

Type

string

$_emptyXml

$_emptyXml : string

The XML string for an "empty" RSS feed.

Type

string

Methods

__construct()

__construct(mixed  $xml = null, string  $uri = null, \Horde_Http_Client  $httpClient = null) 

Feed constructor

The Horde_Feed_Base constructor takes the URI of a feed or a feed represented as a string and loads it as XML.

Parameters

mixed $xml

The feed as a string, a DOMElement, or null.

string $uri

The full URI of the feed, or null if unknown.

\Horde_Http_Client $httpClient

Throws

\Horde_Feed_Exception

If loading the feed failed.

__wakeup()

__wakeup() 

Handle null or array values for $this->_element by initializing with $this->_emptyXml, and importing the array with Horde_Xml_Element::fromArray() if necessary.

_buildListItemCache()

_buildListItemCache() : array

Cache the individual feed elements so they don't need to be searched for on every operation.

Returns

array