[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Feed/Parser/ -> NamespaceParserInterface.php (source)

   1  <?php
   2  
   3  /**
   4   * Joomla! Content Management System
   5   *
   6   * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   7   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   8   */
   9  
  10  namespace Joomla\CMS\Feed\Parser;
  11  
  12  use Joomla\CMS\Feed\Feed;
  13  use Joomla\CMS\Feed\FeedEntry;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('JPATH_PLATFORM') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * Feed Namespace interface.
  21   *
  22   * @since  3.1.4
  23   */
  24  interface NamespaceParserInterface
  25  {
  26      /**
  27       * Method to handle an element for the feed given that a certain namespace is present.
  28       *
  29       * @param   Feed               $feed  The Feed object being built from the parsed feed.
  30       * @param   \SimpleXMLElement  $el    The current XML element object to handle.
  31       *
  32       * @return  void
  33       *
  34       * @since   3.1.4
  35       */
  36      public function processElementForFeed(Feed $feed, \SimpleXMLElement $el);
  37  
  38      /**
  39       * Method to handle the feed entry element for the feed given that a certain namespace is present.
  40       *
  41       * @param   FeedEntry          $entry  The FeedEntry object being built from the parsed feed entry.
  42       * @param   \SimpleXMLElement  $el     The current XML element object to handle.
  43       *
  44       * @return  void
  45       *
  46       * @since   3.1.4
  47       */
  48      public function processElementForFeedEntry(FeedEntry $entry, \SimpleXMLElement $el);
  49  }


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