class FeedFactory

Feed factory class.

Methods

getFeed( string $uri)

Method to load a URI into the feed reader for parsing.

registerParser( string $tagName, string $className, boolean $overwrite = false)

Method to register a FeedParser class for a given root tag name.

Details

Feed getFeed( string $uri)

Method to load a URI into the feed reader for parsing.

Parameters

string $uri The URI of the feed to load. Idn uris must be passed already converted to punycode.

Return Value

Feed

Exceptions

InvalidArgumentException
RuntimeException

FeedFactory registerParser( string $tagName, string $className, boolean $overwrite = false)

Method to register a FeedParser class for a given root tag name.

Parameters

string $tagName The root tag name for which to register the parser class.
string $className The FeedParser class name to register for a root tag name.
boolean $overwrite True to overwrite the parser class if one is already registered.

Return Value

FeedFactory

Exceptions

InvalidArgumentException