Class JFeedFactory

Description

Feed factory class.

  • since: 12.3

Located in /libraries/joomla/feed/factory.php (line 19)


	
			
Variable Summary
 array $parsers
Method Summary
 JFeedReader getFeed (string $uri)
 JFeedFactory registerParser (string $tagName, string $className, [boolean $overwrite = false])
Variables
array $parsers = array('rss' => 'JFeedParserRss', 'feed' => 'JFeedParserAtom') (line 25)
  • var: The list of registered parser classes for feeds.
  • since: 12.3
  • access: protected
Methods
getFeed (line 38)

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

  • throws: InvalidArgumentException
  • throws: RuntimeException
  • since: 12.3
  • access: public
JFeedReader getFeed (string $uri)
  • string $uri: The URI of the feed to load. Idn uris must be passed already converted to punycode.
registerParser (line 81)

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

  • since: 12.3
  • throws: InvalidArgumentException
  • access: public
JFeedFactory registerParser (string $tagName, string $className, [boolean $overwrite = false])
  • string $tagName: The root tag name for which to register the parser class.
  • string $className: The JFeedParser class name to register for a root tag name.
  • boolean $overwrite: True to overwrite the parser class if one is already registered.

Documentation generated on Tue, 19 Nov 2013 15:02:47 +0100 by phpDocumentor 1.4.3