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

classes/monograph/reviewRound/ReviewRound.inc.php

00001 <?php
00002 
00020 define('REVIEW_ROUND_STATUS_REVISIONS_REQUESTED', 1);
00021 define('REVIEW_ROUND_STATUS_RESUBMITTED', 2);
00022 define('REVIEW_ROUND_STATUS_SENT_TO_EXTERNAL', 3);
00023 define('REVIEW_ROUND_STATUS_ACCEPTED', 4);
00024 define('REVIEW_ROUND_STATUS_DECLINED', 5);
00025 define('REVIEW_ROUND_STATUS_PENDING_REVIEWERS', 6);
00026 define('REVIEW_ROUND_STATUS_PENDING_REVIEWS', 7);
00027 define('REVIEW_ROUND_STATUS_REVIEWS_READY', 8);
00028 define('REVIEW_ROUND_STATUS_REVIEWS_COMPLETED', 9);
00029 
00030 class ReviewRound extends DataObject {
00034    function ReviewRound() {
00035       parent::DataObject();
00036    }
00037 
00038    //
00039    // Get/set methods
00040    //
00041 
00046    function getSubmissionId() {
00047       return $this->getData('submissionId');
00048    }
00049 
00054    function setSubmissionId($submissionId) {
00055       return $this->setData('submissionId', $submissionId);
00056    }
00057 
00062    function getStageId() {
00063       return $this->getData('stageId');
00064    }
00065 
00070    function setStageId($stageId) {
00071       return $this->setData('stageId', $stageId);
00072    }
00073 
00078    function getRound() {
00079       return $this->getData('round');
00080    }
00081 
00086    function setRound($round) {
00087       return $this->setData('round', $round);
00088    }
00089 
00094    function getStatus() {
00095       return $this->getData('status');
00096    }
00097 
00102    function setStatus($status) {
00103       return $this->setData('status', $status);
00104    }
00105 
00110    function getStatusKey() {
00111       switch ($this->getStatus()) {
00112          case REVIEW_ROUND_STATUS_REVISIONS_REQUESTED:
00113             return 'editor.monograph.roundStatus.revisionsRequested';
00114          case REVIEW_ROUND_STATUS_RESUBMITTED:
00115             return 'editor.monograph.roundStatus.resubmitted';
00116          case REVIEW_ROUND_STATUS_SENT_TO_EXTERNAL:
00117             return 'editor.monograph.roundStatus.sentToExternal';
00118          case REVIEW_ROUND_STATUS_ACCEPTED:
00119             return 'editor.monograph.roundStatus.accepted';
00120          case REVIEW_ROUND_STATUS_DECLINED:
00121             return 'editor.monograph.roundStatus.declined';
00122          case REVIEW_ROUND_STATUS_PENDING_REVIEWERS:
00123             return 'editor.monograph.roundStatus.pendingReviewers';
00124          case REVIEW_ROUND_STATUS_PENDING_REVIEWS:
00125             return 'editor.monograph.roundStatus.pendingReviews';
00126          case REVIEW_ROUND_STATUS_REVIEWS_READY:
00127             return 'editor.monograph.roundStatus.reviewsReady';
00128          case REVIEW_ROUND_STATUS_REVIEWS_COMPLETED:
00129             return 'editor.monograph.roundStatus.reviewsCompleted';
00130          default: return null;
00131       }
00132    }
00133 }
00134 
00135 ?>

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