classes/author/form/submit/AuthorSubmitStep4Form.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 import("author.form.submit.AuthorSubmitForm");
00018 
00019 class AuthorSubmitStep4Form extends AuthorSubmitForm {
00023    function AuthorSubmitStep4Form($paper) {
00024       parent::AuthorSubmitForm($paper, 4);
00025       $schedConf =& Request::getSchedConf();
00026       if (!$schedConf->getSetting('acceptSupplementaryReviewMaterials')) {
00027          // If supplementary files are not allowed, redirect.
00028          Request::redirect(null, null, null, null, '5');
00029       }
00030    }
00031 
00035    function display() {
00036       $templateMgr =& TemplateManager::getManager();
00037 
00038       // Get supplementary files for this paper
00039       $suppFileDao =& DAORegistry::getDAO('SuppFileDAO');
00040       $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByPaper($this->paperId));
00041 
00042       parent::display();
00043    }
00044 
00048    function execute() {
00049       $paperDao =& DAORegistry::getDAO('PaperDAO');
00050 
00051       // Update paper
00052       $paper =& $this->paper;
00053       if ($paper->getSubmissionProgress() <= $this->step) {
00054          $paper->stampStatusModified();
00055          $paper->setSubmissionProgress($this->step + 1);
00056       }
00057       $paperDao->updatePaper($paper);
00058 
00059       return $this->paperId;
00060    }
00061 }
00062 
00063 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7