[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Feed/ -> FeedParser.php (summary)

Joomla! Content Management System

Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 280 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  parse()
  registerNamespace()
  processElement()
  fetchNamespace()
  moveToNextElement()
  moveToClosingElement()

Functions
Functions that are not part of a class:

__construct(\XMLReader $stream, InputFilter $inputFilter = null)   X-Ref
Constructor.

param: \XMLReader   $stream       The XMLReader stream object for the feed.
param: InputFilter  $inputFilter  The InputFilter object to be used

parse()   X-Ref
Method to parse the feed into a JFeed object.

return: Feed

registerNamespace($prefix, NamespaceParserInterface $namespace)   X-Ref
Method to register a namespace handler object.

param: string                    $prefix     The XML namespace prefix for which to register the namespace object.
param: NamespaceParserInterface  $namespace  The namespace object to register.
return: FeedParser

processElement(Feed $feed, \SimpleXMLElement $el, array $namespaces)   X-Ref
Method to parse a specific feed element.

param: Feed               $feed        The Feed object being built from the parsed feed.
param: \SimpleXMLElement  $el          The current XML element object to handle.
param: array              $namespaces  The array of relevant namespace objects to process for the element.
return: void

fetchNamespace($prefix)   X-Ref
Method to get a namespace object for a given namespace prefix.

param: string  $prefix  The XML prefix for which to fetch the namespace object.
return: mixed  NamespaceParserInterface or false if none exists.

moveToNextElement($name = null)   X-Ref
Method to move the stream parser to the next XML element node.

param: string  $name  The name of the element for which to move the stream forward until is found.
return: boolean  True if the stream parser is on an XML element node.

moveToClosingElement()   X-Ref
Method to move the stream parser to the closing XML node of the current element.

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer