• Main Page
  • Modules
  • Classes
  • Files
  • File List

controllers/grid/files/review/form/ManageReviewFilesForm.inc.php

00001 <?php
00002 
00015 import('controllers.grid.files.form.ManageSubmissionFilesForm');
00016 
00017 class ManageReviewFilesForm extends ManageSubmissionFilesForm {
00018 
00020    var $_stageId;
00021 
00023    var $_reviewRoundId;
00024 
00025 
00029    function ManageReviewFilesForm($monographId, $stageId, $reviewRoundId) {
00030       parent::ManageSubmissionFilesForm($monographId, 'controllers/grid/files/review/manageReviewFiles.tpl');
00031       $this->_stageId = (int)$stageId;
00032       $this->_reviewRoundId = (int)$reviewRoundId;
00033    }
00034 
00035 
00036    //
00037    // Getters / Setters
00038    //
00043    function getStageId() {
00044       return $this->_stageId;
00045    }
00046 
00051    function getReviewRoundId() {
00052       return $this->_reviewRoundId;
00053    }
00054 
00058    function &getReviewRound() {
00059       $reviewRoundDao =& DAORegistry::getDAO('ReviewRoundDAO');
00060       $reviewRound =& $reviewRoundDao->getReviewRoundById($this->getReviewRoundId());
00061       return $reviewRound;
00062    }
00063 
00064 
00065    //
00066    // Overridden template methods
00067    //
00073    function initData($args, &$request) {
00074       $this->setData('stageId', $this->getStageId());
00075       $this->setData('reviewRoundId', $this->getReviewRoundId());
00076 
00077       $reviewRound =& $this->getReviewRound();
00078       $this->setData('round', $reviewRound->getRound());
00079 
00080       parent::initData($args, &$request);
00081    }
00082 
00090    function execute($args, &$request, &$stageMonographFiles) {
00091       parent::execute($args, $request, $stageMonographFiles, MONOGRAPH_FILE_REVIEW_FILE);
00092    }
00093 }
00094 
00095 ?>

Generated on Mon Sep 17 2012 13:58:56 for Open Monograph Press by  doxygen 1.7.1