\JFeedParserAtom
ATOM Feed Parser class.
Synopsis
class JFeedParserAtom
extends JFeedParser
{
- // members
- protected $version;
- // Inherited members from JFeedParser
- protected $entryElementName;
- protected $namespaces;
- protected XMLReader $stream;
- // methods
- protected void handleAuthor()
- protected void handleContributor()
- protected void handleGenerator()
- protected void handleId()
- protected void handleLink()
- protected void handleRights()
- protected void handleSubtitle()
- protected void handleTitle()
- protected void handleUpdated()
- protected void initialise()
- protected void processFeedEntry()
- // 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
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
- handleAuthor() — Method to handle the <author> element for the feed.
- handleContributor() — Method to handle the <contributor> element for the feed.
- handleGenerator() — Method to handle the <generator> element for the feed.
- handleId() — Method to handle the <id> element for the feed.
- handleLink() — Method to handle the <link> element for the feed.
- handleRights() — Method to handle the <rights> element for the feed.
- handleSubtitle() — Method to handle the <subtitle> element for the feed.
- handleTitle() — Method to handle the <title> element for the feed.
- handleUpdated() — Method to handle the <updated> 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: <entry>.
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.