CoreFiles by mySites.guru
PluginstatusField.php42 lines, 747 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
3ba3ebfdff8a4a360ca897ba4c0c6ee6
sha1
85da1a7fd3bbb288914bca09b8b13fcf8b9fe6ab
sha256
761dff696dd19501c9e6ffc448a4252415a49326928454ac61fb1d51996d2e78
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 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');

/**
 * Plugin Status field.
 *
 * @since  3.5
 */
class PluginstatusField extends \JFormFieldPredefinedList
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.5
	 */
	public $type = 'Plugin_Status';

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

The same content is in 27 releases, Joomla 3.9.2-rc to 4.0.0-alpha7. See them all, or every version of this file.