CoreFiles by mySites.guru
RequeststatusField.php42 lines, 932 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
8be3f308249982efb695a9f310d800ad
sha1
467587bd5c03a4b29a62d0e89db0d7602ccb919c
sha256
31a7a5664fe0dcf4defdeaf255f0946ebdd19c5a1bff18c2ccd29f3814dbe1b5
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_privacy
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Privacy\Administrator\Field;

use Joomla\CMS\Form\Field\PredefinedlistField;

/**
 * Form Field to load a list of request statuses
 *
 * @since  3.9.0
 */
class RequeststatusField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.9.0
     */
    public $type = 'RequestStatus';

    /**
     * Available statuses
     *
     * @var    array
     * @since  3.9.0
     */
    protected $predefinedOptions = [
        '-1' => 'COM_PRIVACY_STATUS_INVALID',
        '0'  => 'COM_PRIVACY_STATUS_PENDING',
        '1'  => 'COM_PRIVACY_STATUS_CONFIRMED',
        '2'  => 'COM_PRIVACY_STATUS_COMPLETED',
    ];
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.