Horde_Feed_Blogroll
extends Horde_Feed_Base
in package
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.
Tags
Table of Contents
- $_defaultNamespace : string
- The default namespace for blogrolls.
- $_emptyXml : string
- The XML string for an "empty" Blogroll.
- $_httpClient : Horde_Http_Client
- $_listItemClassName : string
- The classname for individual feed elements.
- $_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.
- getBody() : mixed
- getOutline() : mixed
- getTitle() : mixed
- _buildListItemCache() : mixed
- Cache outline elements so they don't need to be searched for on every operation.
Properties
$_defaultNamespace
The default namespace for blogrolls.
protected
string
$_defaultNamespace
= ''
$_emptyXml
The XML string for an "empty" Blogroll.
protected
string
$_emptyXml
= '<?xml version="1.0" encoding="utf-8"?><opml version="1.1"></opml>'
$_httpClient
protected
Horde_Http_Client
$_httpClient
$_listItemClassName
The classname for individual feed elements.
protected
string
$_listItemClassName
= 'Horde_Feed_Entry_Blogroll'
$_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
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
Return values
mixed —getBody()
public
getBody() : mixed
Return values
mixed —getOutline()
public
getOutline() : mixed
Return values
mixed —getTitle()
public
getTitle() : mixed
Return values
mixed —_buildListItemCache()
Cache outline elements so they don't need to be searched for on every operation.
protected
_buildListItemCache() : mixed