[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_privacy/src/Field/ -> RequeststatusField.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_privacy
   6   *
   7   * @copyright   (C) 2018 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\Privacy\Administrator\Field;
  12  
  13  use Joomla\CMS\Form\Field\PredefinedlistField;
  14  
  15  // phpcs:disable PSR1.Files.SideEffects
  16  \defined('_JEXEC') or die;
  17  // phpcs:enable PSR1.Files.SideEffects
  18  
  19  /**
  20   * Form Field to load a list of request statuses
  21   *
  22   * @since  3.9.0
  23   */
  24  class RequeststatusField extends PredefinedlistField
  25  {
  26      /**
  27       * The form field type.
  28       *
  29       * @var    string
  30       * @since  3.9.0
  31       */
  32      public $type = 'RequestStatus';
  33  
  34      /**
  35       * Available statuses
  36       *
  37       * @var    array
  38       * @since  3.9.0
  39       */
  40      protected $predefinedOptions = [
  41          '-1' => 'COM_PRIVACY_STATUS_INVALID',
  42          '0'  => 'COM_PRIVACY_STATUS_PENDING',
  43          '1'  => 'COM_PRIVACY_STATUS_CONFIRMED',
  44          '2'  => 'COM_PRIVACY_STATUS_COMPLETED',
  45      ];
  46  }


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