|
| $parsers = array('rss' => 'Joomla\\CMS\\Feed\\Parser\\RssParser', 'feed' => 'Joomla\\CMS\\Feed\\Parser\\AtomParser') |
|
Feed factory class.
- Depuis
- 3.1.4
◆ _fetchFeedParser()
_fetchFeedParser |
( |
|
$type, |
|
|
\XMLReader |
$reader |
|
) |
| |
|
private |
Method to return a new JFeedParser object based on the registered parsers and a given type.
- Paramètres
-
string | $type | The name of parser to return. |
\XMLReader | $reader | The XMLReader instance for the feed. |
- Renvoie
- FeedParser
- Depuis
- 3.1.4
- Exceptions
-
Références $type.
◆ getFeed()
Method to load a URI into the feed reader for parsing.
- Paramètres
-
string | $uri | The URI of the feed to load. Idn uris must be passed already converted to punycode. |
- Renvoie
- Feed
- Depuis
- 3.1.4
- Exceptions
-
Références $options, $uri, HttpFactory\getHttp(), et null.
◆ getParsers()
Method to get the registered Parsers
- Renvoie
- array
- Depuis
- 4.0.0
◆ registerParser()
registerParser |
( |
|
$tagName, |
|
|
|
$className, |
|
|
|
$overwrite = false |
|
) |
| |
Method to register a FeedParser class for a given root tag name.
- Paramètres
-
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. |
- Renvoie
- FeedFactory
- Depuis
- 3.1.4
- Exceptions
-
Références $className, $tagName, et $this.
◆ $parsers
$parsers = array('rss' => 'Joomla\\CMS\\Feed\\Parser\\RssParser', 'feed' => 'Joomla\\CMS\\Feed\\Parser\\AtomParser') |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :