1 <?php
2 /**
3 * @package Joomla.Libraries
4 * @subpackage Form
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 JFormHelper::loadFieldClass('predefinedlist');
13
14 /**
15 * Plugin Status field.
16 *
17 * @since 3.5
18 */
19 class JFormFieldPlugin_Status extends JFormFieldPredefinedList
20 {
21 /**
22 * The form field type.
23 *
24 * @var string
25 * @since 3.5
26 */
27 public $type = 'Plugin_Status';
28
29 /**
30 * Available statuses
31 *
32 * @var array
33 * @since 3.5
34 */
35 protected $predefinedOptions = array(
36 '0' => 'JDISABLED',
37 '1' => 'JENABLED',
38 );
39 }
40