Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ManageReviewFilesForm.inc.php
1 <?php
2 
16 import('lib.pkp.controllers.grid.files.form.ManageSubmissionFilesForm');
17 
19 
21  var $_stageId;
22 
25 
26 
30  function ManageReviewFilesForm($submissionId, $stageId, $reviewRoundId) {
31  parent::ManageSubmissionFilesForm($submissionId, 'controllers/grid/files/review/manageReviewFiles.tpl');
32  $this->_stageId = (int)$stageId;
33  $this->_reviewRoundId = (int)$reviewRoundId;
34  }
35 
36 
37  //
38  // Getters / Setters
39  //
44  function getStageId() {
45  return $this->_stageId;
46  }
47 
52  function getReviewRoundId() {
53  return $this->_reviewRoundId;
54  }
55 
59  function getReviewRound() {
60  $reviewRoundDao = DAORegistry::getDAO('ReviewRoundDAO');
61  return $reviewRoundDao->getById($this->getReviewRoundId());
62  }
63 
64 
65  //
66  // Overridden template methods
67  //
73  function initData($args, $request) {
74  $this->setData('stageId', $this->getStageId());
75  $this->setData('reviewRoundId', $this->getReviewRoundId());
76 
77  $reviewRound = $this->getReviewRound();
78  $this->setData('round', $reviewRound->getRound());
79 
80  parent::initData($args, $request);
81  }
82 
90  function execute($args, $request, $stageSubmissionFiles) {
91  parent::execute($args, $request, $stageSubmissionFiles, SUBMISSION_FILE_REVIEW_FILE);
92  }
93 }
94 
95 ?>
static & getDAO($name, $dbconn=null)
setData($key, $value)
Definition: Form.inc.php:219
ManageReviewFilesForm($submissionId, $stageId, $reviewRoundId)
initData()
Definition: Form.inc.php:227
Form for add or removing files from a review.
execute($args, $request, $stageSubmissionFiles)
Form for add or removing files from a review.