[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_fields/src/Controller/ -> FieldsController.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_fields
   6   *
   7   * @copyright   (C) 2016 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\Controller;
  12  
  13  use Joomla\CMS\MVC\Controller\AdminController;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('_JEXEC') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * Fields list controller class.
  21   *
  22   * @since  3.7.0
  23   */
  24  class FieldsController extends AdminController
  25  {
  26      /**
  27       * The prefix to use with controller messages.
  28       *
  29       * @var    string
  30       *
  31       * @since   3.7.0
  32       */
  33      protected $text_prefix = 'COM_FIELDS_FIELD';
  34  
  35      /**
  36       * Proxy for getModel.
  37       *
  38       * @param   string  $name    The name of the model.
  39       * @param   string  $prefix  The prefix for the PHP class name.
  40       * @param   array   $config  Array of configuration parameters.
  41       *
  42       * @return  \Joomla\CMS\MVC\Model\BaseDatabaseModel
  43       *
  44       * @since   3.7.0
  45       */
  46      public function getModel($name = 'Field', $prefix = 'Administrator', $config = array('ignore_request' => true))
  47      {
  48          return parent::getModel($name, $prefix, $config);
  49      }
  50  }


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