CoreFiles by mySites.guru
UserstateField.php41 lines, 808 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
b3cc895a87b23b09650aad31198e469b
sha1
72aa25a929475204a118384c5b576f3a5ed3b6c4
sha256
14ffbd72b400024da4acd83738ecb0903f1de8e2ff7a8d93fc8d90f92293fc8f
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Field;

// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Field to load a list of available users statuses
 *
 * @since  3.2
 */
class UserstateField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var     string
     * @since   3.2
     */
    protected $type = 'UserState';

    /**
     * Available statuses
     *
     * @var  string[]
     * @since  3.2
     */
    protected $predefinedOptions = [
        '0' => 'JENABLED',
        '1' => 'JDISABLED',
    ];
}

The same content is in 37 releases, Joomla 4.4.0-alpha1 to 4.4.14. See them all, or every version of this file.