\JFeedParserProcessElementMock
Mock Feed Parser class.
Synopsis
class JFeedParserProcessElementMock
extends JFeedParser
{
- // members
- public $parseReturn;
- public $entryElementName;
- // Inherited members from JFeedParser
- protected $entryElementName;
- protected $namespaces;
- protected XMLReader $stream;
- // methods
- public void processElement()
- public void handleElement1()
- protected void initialise()
- // 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.
public
- $entryElementName — string
- $parseReturn — mixed
Methods
protected
- initialise() — Do Nothing.
public
- handleElement1() — Method to handle the <link> element for the feed.
- processElement() — Method to parse a specific feed element.
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.