コード例 #1
0
 /**
  * Setup common template variables.
  * @param $level int set to 0 if caller is at the same level as this handler in the hierarchy; otherwise the number of levels below this handler
  */
 function setupTemplate($request, $level = DIRECTOR_TRACK_HOME, $paperId = 0, $parentPage = null)
 {
     parent::setupTemplate($request);
     $templateMgr =& TemplateManager::getManager();
     $conference =& $request->getConference();
     $schedConf =& $request->getSchedConf();
     $pageHierarchy = array();
     if ($schedConf) {
         $pageHierarchy[] = array($request->url(null, null, 'index'), $schedConf->getFullTitle(), true);
     } elseif ($conference) {
         $pageHierarchy[] = array($request->url(null, 'index', 'index'), $conference->getConferenceTitle(), true);
     }
     $pageHierarchy[] = array($request->url(null, null, 'user'), 'navigation.user');
     if ($level == DIRECTOR_TRACK_SUBMISSIONS) {
         $pageHierarchy[] = array($request->url(null, null, 'director'), 'user.role.director');
         $pageHierarchy[] = array($request->url(null, null, 'director', 'submissions'), 'paper.submissions');
     }
     import('classes.submission.trackDirector.TrackDirectorAction');
     $submissionCrumb = TrackDirectorAction::submissionBreadcrumb($paperId, $parentPage, 'director');
     if (isset($submissionCrumb)) {
         $pageHierarchy = array_merge($pageHierarchy, $submissionCrumb);
     }
     $templateMgr->assign('pageHierarchy', $pageHierarchy);
 }
コード例 #2
0
 /**
  * Email a director decision comment.
  */
 function emailDirectorDecisionComment()
 {
     $paperId = (int) Request::getUserVar('paperId');
     $submissionEditHandler = new SubmissionEditHandler();
     $submissionEditHandler->validate($paperId);
     $trackDirectorSubmissionDao =& DAORegistry::getDAO('TrackDirectorSubmissionDAO');
     $submission =& $trackDirectorSubmissionDao->getTrackDirectorSubmission($paperId);
     parent::setupTemplate(true);
     if (TrackDirectorAction::emailDirectorDecisionComment($submission, Request::getUserVar('send'))) {
         if (Request::getUserVar('blindCcReviewers')) {
             $this->blindCcReviewsToReviewers();
         } else {
             Request::redirect(null, null, null, 'submissionReview', array($paperId));
         }
     }
 }