CoreFiles by mySites.guru
UserstateField.php42 lines, 770 bytes, from Joomla_3.8.3-Stable-Full_Package.zip
Raw History Compare with 3.8.2
md5
ad50f3dd9e5247e2c900cbb548527e29
sha1
fc1f0bc5d13cc7246321b1a20c27142e15f795c4
sha256
88542cf5ee2e6c1e392d1ebe8c6d250d4c5c05fa347e766bc023d7fd2cfd2d59
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Field;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Form\FormHelper;

FormHelper::loadFieldClass('predefinedlist');

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

	/**
	 * Available statuses
	 *
	 * @var  array
	 * @since  3.2
	 */
	protected $predefinedOptions = array(
		'0'  => 'JENABLED',
		'1'  => 'JDISABLED',
	);
}

The same content is in 11 releases, Joomla 3.8.0-beta3 to 4.0.0-alpha2. See them all, or every version of this file.