PHP Class Horde_Feed, horde

Author: Chuck Hagenbuch ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Public Methods

Method Description
create ( DOMDocument $doc, $uri = null ) : Horde_Feed_Base Create a Feed object based on a DOMDocument.
read ( string $string, string $uri = null ) : Horde_Feed_Base Reads a feed represented by $string.
readFile ( string $filename ) : Horde_Feed_Base Read a feed from $filename
readUri ( string $uri, Horde_Http_Client $httpclient = null ) : Horde_Feed_Base Read a feed located at $uri

Protected Methods

Method Description
_exception ( string $msg, libXMLError $error ) Builds an exception message from a libXMLError object.

Method Details

_exception() protected static method

Builds an exception message from a libXMLError object.
protected static _exception ( string $msg, libXMLError $error )
$msg string An error message.
$error libXMLError An error object.

create() public static method

Create a Feed object based on a DOMDocument.
public static create ( DOMDocument $doc, $uri = null ) : Horde_Feed_Base
$doc DOMDocument The DOMDocument object to import.
return Horde_Feed_Base The feed object imported from $doc

read() public static method

Reads a feed represented by $string.
public static read ( string $string, string $uri = null ) : Horde_Feed_Base
$string string The XML content of the feed.
$uri string The feed's URI location, if known.
return Horde_Feed_Base

readFile() public static method

Read a feed from $filename
public static readFile ( string $filename ) : Horde_Feed_Base
$filename string The location of the feed file on an accessible filesystem or through an available stream wrapper.
return Horde_Feed_Base

readUri() public static method

Read a feed located at $uri
public static readUri ( string $uri, Horde_Http_Client $httpclient = null ) : Horde_Feed_Base
$uri string The URI to fetch the feed from.
$httpclient Horde_Http_Client The HTTP client to use.
return Horde_Feed_Base