FeedFactory
Feed factory class.
since |
3.1.4 |
---|---|
package |
Joomla CMS |
Methods
_fetchFeedParser
Method to return a new JFeedParser object based on the registered parsers and a given type.
_fetchFeedParser(string type, \XMLReader reader) : \Joomla\CMS\Feed\FeedParser
since |
3.1.4 |
---|---|
throws |
|
Arguments
- type
string
The name of parser to return.- reader
\XMLReader
The XMLReader instance for the feed.
Response
\Joomla\CMS\Feed\FeedParser
getFeed
Method to load a URI into the feed reader for parsing.
getFeed(string uri) : \Joomla\CMS\Feed\Feed
since |
3.1.4 |
---|---|
throws |
|
Arguments
- uri
string
The URI of the feed to load. Idn uris must be passed already converted to punycode.
Response
\Joomla\CMS\Feed\Feed
getParsers
Method to get the registered Parsers
getParsers() : array
since |
4.0.0 |
---|
Response
array
registerParser
Method to register a FeedParser class for a given root tag name.
registerParser(string tagName, string className, bool overwrite = false) : \Joomla\CMS\Feed\FeedFactory
since |
3.1.4 |
---|---|
throws |
|
Arguments
- tagName
string
The root tag name for which to register the parser class.- className
string
The FeedParser class name to register for a root tag name.- overwrite
bool
True to overwrite the parser class if one is already registered.
Response
\Joomla\CMS\Feed\FeedFactory