\JFeedParserRss
RSS Feed Parser class.
Synopsis
class JFeedParserRss
extends JFeedParser
{
- // members
- protected $entryElementName;
- protected $version;
- // Inherited members from JFeedParser
- protected $entryElementName;
- protected $namespaces;
- protected XMLReader $stream;
- // methods
- protected void handleCategory()
- protected void handleCloud()
- protected void handleCopyright()
- protected void handleDescription()
- protected void handleGenerator()
- protected void handleImage()
- protected void handleLanguage()
- protected void handleLastBuildDate()
- protected void handleLink()
- protected void handleManagingEditor()
- protected void handleSkipDays()
- protected void handleSkipHours()
- protected void handlePubDate()
- protected void handleTitle()
- protected void handleTtl()
- protected void handleWebmaster()
- protected void initialise()
- protected void processFeedEntry()
- protected JFeedPerson processPerson()
- // Inherited methods from JFeedParser
- public void __construct()
- public JFeed parse()
- public JFeed registerNamespace()
- protected abstract void initialise()
- protected void processElement()
- protected mixed fetchNamespace()
- protected boolean moveToNextElement()
- protected void moveToClosingElement()
Hierarchy
Extends
Members
protected
- $entryElementName — string
- $entryElementName
—
string
The feed element name for the entry elements. - $namespaces
—
array
Array of JFeedParserNamespace objects - $stream
—
XMLReader
The XMLReader stream object for the feed. - $version — string
Methods
protected
- handleCategory() — Method to handle the <category> element for the feed.
- handleCloud() — Method to handle the <cloud> element for the feed.
- handleCopyright() — Method to handle the <copyright> element for the feed.
- handleDescription() — Method to handle the <description> element for the feed.
- handleGenerator() — Method to handle the <generator> element for the feed.
- handleImage() — Method to handle the <image> element for the feed.
- handleLanguage() — Method to handle the <language> element for the feed.
- handleLastBuildDate() — Method to handle the <lastBuildDate> element for the feed.
- handleLink() — Method to handle the <link> element for the feed.
- handleManagingEditor() — Method to handle the <managingEditor> element for the feed.
- handlePubDate() — Method to handle the <pubDate> element for the feed.
- handleSkipDays() — Method to handle the <skipDays> element for the feed.
- handleSkipHours() — Method to handle the <skipHours> element for the feed.
- handleTitle() — Method to handle the <title> element for the feed.
- handleTtl() — Method to handle the <ttl> element for the feed.
- handleWebmaster() — Method to handle the <webmaster> element for the feed.
- initialise() — Method to initialise the feed for parsing. Here we detect the version and advance the stream reader so that it is ready to parse feed elements.
- processFeedEntry() — Method to handle the feed entry element for the feed: <item>.
- processPerson() — Method to parse a string with person data and return a JFeedPerson object.
Inherited from JFeedParser
protected
- fetchNamespace() — Method to get a namespace object for a given namespace prefix.
- initialise() — Method to initialise the feed for parsing. If child parsers need to detect versions or other such things this is where you'll want to implement that logic.
- moveToClosingElement() — Method to move the stream parser to the closing XML node of the current element.
- moveToNextElement() — Method to move the stream parser to the next XML element node.
- processElement() — Method to parse a specific feed element.
public
- parse() — Method to parse the feed into a JFeed object.
- registerNamespace() — Method to register a namespace handler object.