getSetting('acceptSupplementaryReviewMaterials')) { // If supplementary files are not allowed, redirect. Request::redirect(null, null, null, null, '3'); } } /** * Display the form. */ function display() { $templateMgr = &TemplateManager::getManager(); // Get supplementary files for this paper $suppFileDao = &DAORegistry::getDAO('SuppFileDAO'); $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByPaper($this->paperId)); parent::display(); } /** * Save changes to paper. */ function execute() { $paperDao = &DAORegistry::getDAO('PaperDAO'); // Update paper $paper = &$this->paper; if ($paper->getSubmissionProgress() <= $this->step) { $paper->stampStatusModified(); $paper->setSubmissionProgress($this->step + 1); } $paperDao->updatePaper($paper); return $this->paperId; } } ?>