Back to Joomla project (class list)

Class FeedFactory - list of methods

Feed factory class.
Package: Joomla\CMS\Feed
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Feed/FeedFactory.php
Project: Joomla

Method Summary

public \Joomla\CMS\Feed\Feed
(mixed $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.
Returns
  • \Joomla\CMS\Feed\Feed
Since
  • 3.1.4
-
  • \InvalidArgumentException
  • \RuntimeException
Show source code of this method: getFeed Source Code

public \Joomla\CMS\Feed\FeedFactory
(mixed $tagName, mixed $className, mixed $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.
  • bool $overwrite True to overwrite the parser class if one is already registered.
Returns
  • \Joomla\CMS\Feed\FeedFactory
Since
  • 3.1.4
-
  • \InvalidArgumentException
Show source code of this method: registerParser Source Code

public array
()

Method to get the registered Parsers
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getParsers Source Code

private \Joomla\CMS\Feed\FeedParser
(mixed $type, \XMLReader $reader)

Method to return a new JFeedParser object based on the registered parsers and a given type.
Parameters
  • string $type The name of parser to return.
  • \XMLReader $reader The XMLReader instance for the feed.
Returns
  • \Joomla\CMS\Feed\FeedParser
Since
  • 3.1.4
-
  • \LogicException
Show source code of this method: _fetchFeedParser Source Code

Properties Summary

protected array
$parsers
Since
  • 3.1.4

Tags Summary

Since
3.1.4