10 defined(
'JPATH_PLATFORM') or die;
30 public $type =
'Category';
42 protected function getOptions()
45 $extension = $this->element[
'extension'] ? (string) $this->element[
'extension'] : (
string) $this->element[
'scope'];
46 $published = (string) $this->element[
'published'];
49 if (!empty($extension))
54 $options = JHtml::_(
'category.options', $extension, array(
'filter.published' => explode(
',', $published)));
58 $options = JHtml::_(
'category.options', $extension);
62 if ((
string) $this->element[
'action'])
68 foreach ($options as $i => $option)
75 if ($user->authorise(
'core.create', $extension .
'.category.' . $option->value) !=
true)
83 if (isset($this->element[
'show_root']))
85 array_unshift($options, JHtml::_(
'select.option',
'0',
JText::_(
'JGLOBAL_ROOT')));
94 $options = array_merge(parent::getOptions(), $options);