\JFeedParser
Feed Parser class.
Synopsis
class JFeedParser
{
- // members
- protected $entryElementName;
- protected $namespaces;
- protected XMLReader $stream;
- // methods
- 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
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.
Methods
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
- __construct() — Constructor.
- parse() — Method to parse the feed into a JFeed object.
- registerNamespace() — Method to register a namespace handler object.