예제 #1
0
파일: cmclistid.php 프로젝트: fracting/cmc
 /**
  * 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;
 }
예제 #2
0
 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);
 }