CoreFiles by mySites.guru
PluginStatusField.php42 lines, 747 bytes, from Joomla_3.8.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.7.4-beta1
md5
29eb99a2071b68cfe2b7cd34cb07ebf5
sha1
3dbface07cc7718c0633cf731dde36e0a7e70fec
sha256
bd85c704f75754c44b9ed08d34e7062330c0292c64d49967d281d9cda9edeaca
<?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');

/**
 * 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 2 releases, Joomla 3.8.0-beta1 to 3.8.0-beta2. See them all, or every version of this file.