Feed Parser class.
- Depuis
- 3.1.4
◆ __construct()
◆ 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, $prefix, et $this.
◆ 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()
◆ 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, $method, $namespace, et $this.
◆ 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
- FeedParser
- Depuis
- 3.1.4
Références $namespace, $prefix, et $this.
◆ $entryElementName
$entryElementName = 'entry' |
|
protected |
◆ $inputFilter
◆ $namespaces
◆ $stream
La documentation de cette classe a été générée à partir du fichier suivant :