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  * Form Field to load a list of states
16  *
17  * @since  3.2
18  */
19 class JFormFieldStatus extends JFormFieldPredefinedList
20 {
21     /**
22      * The form field type.
23      *
24      * @var    string
25      * @since  3.2
26      */
27     public $type = 'Status';
28 
29     /**
30      * Available statuses
31      *
32      * @var  array
33      * @since  3.2
34      */
35     protected $predefinedOptions = array(
36         '-2' => 'JTRASHED',
37         '0'  => 'JUNPUBLISHED',
38         '1'  => 'JPUBLISHED',
39         '2'  => 'JARCHIVED',
40         '*'  => 'JALL',
41     );
42 }
43