/** * Get the options * * @return array */ protected function getOptions() { $lists = CmcHelperBasic::getLists(); $input = JFActory::getApplication()->input; $list_options = array(); foreach ($lists as $list) { $list_options[] = JHTML::_('select.option', $list->mc_id, $list->list_name); } if ($input->get('filter_list')) { $this->value = $input->get('filter_list'); } return $list_options; }
public function setRSSHeader($albumId) { $document = JFactory::getDocument(); $album = JTable::getInstance('Album', 'CTable'); $album->load($albumId); $mainframe = JFActory::getApplication(); // Set feed url $link = CRoute::_('index.php?option=com_community&view=photos&task=album&albumid=' . $album->id . '&userid=' . $album->creator . '&format=feed'); $feed = '<link rel="alternate" type="application/rss+xml" href="' . $link . '"/>'; $document->addCustomTag($feed); }