\Horde_Feed_Blogroll

Blogroll feed list class

This is not a generic OPML implementation, but one focused on lists of feeds, i.e. blogrolls. See http://en.wikipedia.org/wiki/OPML for more information on OPML.

Summary

Methods
Properties
Constants
__construct()
__wakeup()
getBody()
getOutline()
getTitle()
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 feed elements.

Type

string

$_defaultNamespace

$_defaultNamespace : string

The default namespace for blogrolls.

Type

string

$_emptyXml

$_emptyXml : string

The XML string for an "empty" Blogroll.

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.

getBody()

getBody() 

getOutline()

getOutline() 

getTitle()

getTitle() 

_buildListItemCache()

_buildListItemCache() 

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