[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_fields/src/Extension/ -> FieldsComponent.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_fields
   6   *
   7   * @copyright   (C) 2019 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\Fields\Administrator\Extension;
  12  
  13  use Joomla\CMS\Categories\CategoryServiceInterface;
  14  use Joomla\CMS\Categories\CategoryServiceTrait;
  15  use Joomla\CMS\Extension\MVCComponent;
  16  
  17  // phpcs:disable PSR1.Files.SideEffects
  18  \defined('JPATH_PLATFORM') or die;
  19  // phpcs:enable PSR1.Files.SideEffects
  20  
  21  /**
  22   * Component class for com_fields
  23   *
  24   * @since  4.0.0
  25   */
  26  class FieldsComponent extends MVCComponent implements CategoryServiceInterface
  27  {
  28      use CategoryServiceTrait;
  29  
  30      /**
  31       * Returns the table for the count items functions for the given section.
  32       *
  33       * @param   string  $section  The section
  34       *
  35       * @return  string|null
  36       *
  37       * @since   4.0.0
  38       */
  39      protected function getTableNameForSection(string $section = null)
  40      {
  41          return 'fields';
  42      }
  43  }


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