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 * Field to load a list of available users statuses
16 *
17 * @since 3.2
18 */
19 class JFormFieldUserState extends JFormFieldPredefinedList
20 {
21 /**
22 * The form field type.
23 *
24 * @var string
25 * @since 3.2
26 */
27 protected $type = 'UserState';
28
29 /**
30 * Available statuses
31 *
32 * @var array
33 * @since 3.2
34 */
35 protected $predefinedOptions = array(
36 '0' => 'JENABLED',
37 '1' => 'JDISABLED',
38 );
39 }
40