\Horde_Feed_Base

The Horde_Feed_Base class is an abstract class representing feeds.

Horde_Feed_Base implements two core PHP 5 interfaces: ArrayAccess and Iterator. In both cases the collection being treated as an array is considered to be the entry collection, such that iterating over the feed takes you through each of the feed's entries.

Summary

Methods
Properties
Constants
__construct()
__wakeup()
No public properties found
No constants found
No protected methods found
$_uri
$_httpClient
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

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.