/** * Specify the options to load * * @copyright * @author RolandD * @todo * @see * @access protected * @param * @return array an array of options * @since 4.0 */ protected function getOptions() { $this->options = array(); if (class_exists('com_k2')) { $jinput = JFactory::getApplication()->input; $template = $jinput->get('template', null, null); $helper = new Com_K2(); $this->options = $helper->getCategoryTree($template->get('language', 'general', '*')); } return $this->options; }