[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_contact/src/View/Category/ -> FeedView.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_contact
   6   *
   7   * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\Component\Contact\Site\View\Category;
  12  
  13  use Joomla\CMS\MVC\View\CategoryFeedView;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('_JEXEC') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * HTML View class for the Contact component
  21   *
  22   * @since  1.5
  23   */
  24  class FeedView extends CategoryFeedView
  25  {
  26      /**
  27       * @var    string  The name of the view to link individual items to
  28       * @since  3.2
  29       */
  30      protected $viewName = 'contact';
  31  
  32      /**
  33       * Method to reconcile non standard names from components to usage in this class.
  34       * Typically overridden in the component feed view class.
  35       *
  36       * @param   object  $item  The item for a feed, an element of the $items array.
  37       *
  38       * @return  void
  39       *
  40       * @since   3.2
  41       */
  42      protected function reconcileNames($item)
  43      {
  44          parent::reconcileNames($item);
  45  
  46          $item->description = $item->address;
  47      }
  48  }


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