Documentation

Horde_Feed_Base extends Horde_Xml_Element_List
in package

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.

Tags
author

Chuck Hagenbuch chuck@horde.org

category

Horde

copyright

2005-2007 Zend Technologies USA Inc.

copyright

2007-2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$_httpClient  : Horde_Http_Client
$_uri  : string
Our root ("home") URI
__construct()  : mixed
Feed constructor
__wakeup()  : mixed
Handle null or array values for $this->_element by initializing with $this->_emptyXml, and importing the array with Horde_Xml_Element::fromArray() if necessary.

Properties

$_httpClient

protected Horde_Http_Client $_httpClient

$_uri

Our root ("home") URI

protected string $_uri

Methods

__construct()

Feed constructor

public __construct([mixed $xml = null ][, string $uri = null ][, Horde_Http_Client $httpClient = null ]) : mixed

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

Parameters
$xml : mixed = null

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

$uri : string = null

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

$httpClient : Horde_Http_Client = null
Tags
throws
Horde_Feed_Exception

If loading the feed failed.

Return values
mixed

__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.

public __wakeup() : mixed
Tags
see
Horde_Xml_Element::__wakeup
see
Horde_Xml_Element::fromArray
Return values
mixed

Search results