\JFeedParserMock
Mock Feed Parser class.
Synopsis
class JFeedParserMock
extends JFeedParser
{
- // members
- public $parseReturn;
- // Inherited members from JFeedParser
- protected $entryElementName;
- protected $namespaces;
- protected XMLReader $stream;
- // methods
- protected void initialise()
- public mixed parse()
- // 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
- $parseReturn — mixed
Methods
protected
- initialise() — Do Nothing.
public
- parse() — Return the static value.
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.