1 <?php
2 3 4 5 6 7
8
9 defined('FOF_INCLUDED') or die;
10
11 12 13 14 15 16
17 class extends FOFFormHeaderFieldselectable
18 {
19 20 21 22 23
24 protected function getOptions()
25 {
26 $config = array(
27 'published' => 1,
28 'unpublished' => 1,
29 'archived' => 0,
30 'trash' => 0,
31 'all' => 0,
32 );
33
34 $stack = array();
35
36 if ($this->element['show_published'] == 'false')
37 {
38 $config['published'] = 0;
39 }
40
41 if ($this->element['show_unpublished'] == 'false')
42 {
43 $config['unpublished'] = 0;
44 }
45
46 if ($this->element['show_archived'] == 'true')
47 {
48 $config['archived'] = 1;
49 }
50
51 if ($this->element['show_trash'] == 'true')
52 {
53 $config['trash'] = 1;
54 }
55
56 if ($this->element['show_all'] == 'true')
57 {
58 $config['all'] = 1;
59 }
60
61 $options = JHtml::_('jgrid.publishedOptions', $config);
62
63 reset($options);
64
65 return $options;
66 }
67 }
68