CoreFiles by mySites.guru
StatusField.php45 lines, 817 bytes, from Joomla_3.9.16-Stable-Full_Package.zip
Raw History Compare with 3.9.15
md5
29fb5a1b8af48028f8e829d950a40ce8
sha1
a30f996baf6ac562752ceff1b2765cbb92e415db
sha256
5f844a3f14ceb447f20ea6c557ff5db36f083306ca47b234c0fdf8e6e69183e5
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2020 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');

/**
 * Form Field to load a list of states
 *
 * @since  3.2
 */
class StatusField extends \JFormFieldPredefinedList
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.2
	 */
	public $type = 'Status';

	/**
	 * Available statuses
	 *
	 * @var  array
	 * @since  3.2
	 */
	protected $predefinedOptions = array(
		'-2' =>	'JTRASHED',
		'0'  => 'JUNPUBLISHED',
		'1'  => 'JPUBLISHED',
		'2'  => 'JARCHIVED',
		'*'  => 'JALL',
	);
}

The same content is in 4 releases, Joomla 3.9.15-rc to 3.9.16. See them all, or every version of this file.