1 <?php
2 /**
3 * @package Joomla.Platform
4 * @subpackage Feed
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Feed Namespace interface.
14 *
15 * @since 12.3
16 */
17 interface JFeedParserNamespace
18 {
19 /**
20 * Method to handle an element for the feed given that a certain namespace is present.
21 *
22 * @param JFeed $feed The JFeed object being built from the parsed feed.
23 * @param SimpleXMLElement $el The current XML element object to handle.
24 *
25 * @return void
26 *
27 * @since 12.3
28 */
29 public function processElementForFeed(JFeed $feed, SimpleXMLElement $el);
30
31 /**
32 * Method to handle the feed entry element for the feed given that a certain namespace is present.
33 *
34 * @param JFeedEntry $entry The JFeedEntry object being built from the parsed feed entry.
35 * @param SimpleXMLElement $el The current XML element object to handle.
36 *
37 * @return void
38 *
39 * @since 12.3
40 */
41 public function processElementForFeedEntry(JFeedEntry $entry, SimpleXMLElement $el);
42 }
43