Beispiel #1
0
 /**
  * Display a list of announcements for the current conference.
  */
 function announcements()
 {
     $templateMgr =& TemplateManager::getManager();
     $conference =& Request::getConference();
     if ($conference) {
         $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
         $schedConfs =& $schedConfDao->getSchedConfsByConferenceId($conference->getId());
         $schedConfNames = array(0 => __('common.all'));
         foreach ($schedConfs->toArray() as $schedConf) {
             $schedConfNames[$schedConf->getId()] = $schedConf->getSchedConfTitle();
         }
         $templateMgr->assign_by_ref('schedConfNames', $schedConfNames);
     }
     //TODO: move this assignment to the abstracted templates or generalize the key
     $templateMgr->assign('helpTopicId', 'conference.generalManagement.announcements');
     parent::announcements();
 }
 /**
  * Display a list of announcements for the current journal.
  */
 function announcements()
 {
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('helpTopicId', 'journal.managementPages.announcements');
     parent::announcements();
 }