\Horde_Feed

Static class representing a feed client.

Summary

Methods
Properties
Constants
create()
read()
readUri()
readFile()
No public properties found
No constants found
_exception()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create(\DOMDocument  $doc,   $uri = null) : \Horde_Feed_Base

Create a Feed object based on a DOMDocument.

Parameters

\DOMDocument $doc

The DOMDocument object to import.

$uri

Throws

\Horde_Feed_Exception

Returns

\Horde_Feed_Base

The feed object imported from $doc

read()

read(string  $string, string  $uri = null) : \Horde_Feed_Base

Reads a feed represented by $string.

Parameters

string $string

The XML content of the feed.

string $uri

The feed's URI location, if known.

Throws

\Horde_Feed_Exception

Returns

\Horde_Feed_Base

readUri()

readUri(string  $uri, \Horde_Http_Client  $httpclient = null) : \Horde_Feed_Base

Read a feed located at $uri

Parameters

string $uri

The URI to fetch the feed from.

\Horde_Http_Client $httpclient

The HTTP client to use.

Throws

\Horde_Feed_Exception

Returns

\Horde_Feed_Base

readFile()

readFile(string  $filename) : \Horde_Feed_Base

Read a feed from $filename

Parameters

string $filename

The location of the feed file on an accessible filesystem or through an available stream wrapper.

Throws

\Horde_Feed_Exception

Returns

\Horde_Feed_Base

_exception()

_exception(string  $msg, \libXMLError  $error) 

Builds an exception message from a libXMLError object.

Parameters

string $msg

An error message.

\libXMLError $error

An error object.

Throws

\Horde_Feed_Exception