コード例 #1
0
ファイル: TimelineHandler.inc.php プロジェクト: artkuo/ocs
 /**
  * Display a list of the tracks within the current conference.
  */
 function timeline($args, &$request)
 {
     $this->validate();
     $this->setupTemplate($request, true);
     import('classes.manager.form.TimelineForm');
     $timelineForm = new TimelineForm($request->getUserVar('overrideDates'));
     $timelineForm->initData();
     $timelineForm->display();
 }
コード例 #2
0
ファイル: TimelineHandler.inc.php プロジェクト: jalperin/ocs
 /**
  * Display a list of the tracks within the current conference.
  */
 function timeline($args)
 {
     $this->validate();
     $this->setupTemplate(true);
     import('manager.form.TimelineForm');
     if (checkPhpVersion('5.0.0')) {
         // WARNING: This form needs $this in constructor
         $timelineForm = new TimelineForm(Request::getUserVar('overrideDates'));
     } else {
         $timelineForm =& new TimelineForm(Request::getUserVar('overrideDates'));
     }
     $timelineForm->initData();
     $timelineForm->display();
 }
コード例 #3
0
 /**
  * Display read-only timeline
  */
 function timeline()
 {
     $this->addCheck(new HandlerValidatorSchedConf($this));
     $this->validate();
     $conference =& Request::getConference();
     $schedConf =& Request::getSchedConf();
     $templateMgr =& TemplateManager::getManager();
     //$templateMgr->assign('pageHierarchy', array(
     //	array(Request::url(null, 'index', 'index'), $conference->getConferenceTitle(), true),
     //	array(Request::url(null, null, 'index'), $schedConf->getSchedConfTitle(), true)));
     SchedConfHandler::setupTemplate($conference, $schedConf);
     AppLocale::requireComponents(array(LOCALE_COMPONENT_OCS_MANAGER));
     // FIXME: For timeline constants
     import('manager.form.TimelineForm');
     $templateMgr->assign('pageHierarchyRoot', true);
     $templateMgr->assign('pageHierarchy', array(array(Request::url(null, $conference->getSetting('path'), 'index'), AppLocale::Translate('navigation.home'), true), array(Request::url(null, null, 'index'), AppLocale::Translate('schedConf.timeline'), true)));
     if (checkPhpVersion('5.0.0')) {
         // WARNING: This form needs $this in constructor
         $timelineForm = new TimelineForm(false, true);
     } else {
         $timelineForm =& new TimelineForm(false, true);
     }
     $timelineForm->initData();
     $timelineForm->display();
 }
コード例 #4
0
ファイル: SchedConfHandler.inc.php プロジェクト: artkuo/ocs
 /**
  * Display read-only timeline
  */
 function timeline($args, &$request)
 {
     $this->addCheck(new HandlerValidatorSchedConf($this));
     $this->validate();
     $conference =& $request->getConference();
     $schedConf =& $request->getSchedConf();
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('pageHierarchy', array(array($request->url(null, 'index', 'index'), $conference->getLocalizedName(), true), array($request->url(null, null, 'index'), $schedConf->getLocalizedName(), true)));
     $this->setupTemplate($request, $conference, $schedConf);
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_MANAGER);
     // FIXME: For timeline constants
     import('classes.manager.form.TimelineForm');
     $timelineForm = new TimelineForm(false, true);
     $timelineForm->initData();
     $timelineForm->display();
 }