Feed Parser class.
- Depuis
- 3.1.4
◆ __construct()
Constructor.
- Paramètres
-
\XMLReader | $stream | The XMLReader stream object for the feed. |
InputFilter | $inputFilter | The InputFilter object to be used |
- Depuis
- 3.1.4
Références InputFilter\getInstance().
◆ fetchNamespace()
fetchNamespace |
( |
|
$prefix | ) |
|
|
protected |
Method to get a namespace object for a given namespace prefix.
- Paramètres
-
string | $prefix | The XML prefix for which to fetch the namespace object. |
- Renvoie
- mixed NamespaceParserInterface or false if none exists.
- Depuis
- 3.1.4
Références $className, et $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.
- Renvoie
- void
- Depuis
- 3.1.4
◆ moveToClosingElement()
Method to move the stream parser to the closing XML node of the current element.
- Renvoie
- void
- Depuis
- 3.1.4
- Exceptions
-
Références $name.
◆ moveToNextElement()
moveToNextElement |
( |
|
$name = null | ) |
|
|
protected |
Method to move the stream parser to the next XML element node.
- Paramètres
-
string | $name | The name of the element for which to move the stream forward until is found. |
- Renvoie
- boolean True if the stream parser is on an XML element node.
- Depuis
- 3.1.4
Références $name.
◆ parse()
Method to parse the feed into a JFeed object.
- Renvoie
- Feed
- Depuis
- 3.1.4
Références $feed, $prefix, et $uri.
◆ processElement()
processElement |
( |
Feed |
$feed, |
|
|
\SimpleXMLElement |
$el, |
|
|
array |
$namespaces |
|
) |
| |
|
protected |
Method to parse a specific feed element.
- Paramètres
-
Feed | $feed | The Feed object being built from the parsed feed. |
\SimpleXMLElement | $el | The current XML element object to handle. |
array | $namespaces | The array of relevant namespace objects to process for the element. |
- Renvoie
- void
- Depuis
- 3.1.4
Références $feed.
◆ registerNamespace()
Method to register a namespace handler object.
- Paramètres
-
string | $prefix | The XML namespace prefix for which to register the namespace object. |
NamespaceParserInterface | $namespace | The namespace object to register. |
- Renvoie
- JFeed
- Depuis
- 3.1.4
Références $prefix.
◆ $entryElementName
$entryElementName = 'entry' |
|
protected |
◆ $inputFilter
◆ $namespaces
◆ $stream
La documentation de cette classe a été générée à partir du fichier suivant :