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( 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
getFeed
Method to load a URI into the feed reader for parsing.
getFeed( 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
getParsers
Method to get the registered Parsers
getParsers() : mixed||string|int
since |
4.0.0 |
---|
Response
array<string|int, mixed>
registerParser
Method to register a FeedParser class for a given root tag name.
registerParser( tagName, className, 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
Properties
parsers
The list of registered parser classes for feeds.
since |
3.1.4 |
---|
Type(s)
array<string|int, mixed>