Overview

Packages

  • Feed

Classes

  • Horde_Feed
  • Horde_Feed_Atom
  • Horde_Feed_Base
  • Horde_Feed_Blogroll
  • Horde_Feed_Entry_Atom
  • Horde_Feed_Entry_Base
  • Horde_Feed_Entry_Blogroll
  • Horde_Feed_Entry_Rss
  • Horde_Feed_Exception
  • Horde_Feed_Rss
  • Overview
  • Package
  • Class
  • Tree

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

Horde_Xml_Element_List
Extended by Horde_Feed_Base

Direct known subclasses

Horde_Feed_Atom, Horde_Feed_Blogroll, Horde_Feed_Rss
Abstract
Package: Feed
Category: Horde
Located at Horde/Feed/Base.php
Methods summary
public
# __construct( mixed $xml = null, string $uri = null, Horde_Http_Client $httpClient = null )

Feed constructor

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

$xml
The feed as a string, a DOMElement, or null.
$uri
The full URI of the feed, or null if unknown.
$httpClient

Throws

Horde_Feed_Exception
If loading the feed failed.
public
# __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.

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

See

Horde_Xml_Element::__wakeup
Horde_Xml_Element::fromArray
API documentation generated by ApiGen