classes/submission/reviewAssignment/ReviewAssignment.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00018 define('SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT', 1);
00019 define('SUBMISSION_REVIEWER_RECOMMENDATION_PENDING_REVISIONS', 2);
00020 define('SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_ELSEWHERE', 4);
00021 define('SUBMISSION_REVIEWER_RECOMMENDATION_DECLINE', 5);
00022 define('SUBMISSION_REVIEWER_RECOMMENDATION_SEE_COMMENTS', 6);
00023 
00024 define('SUBMISSION_REVIEWER_RATING_VERY_GOOD', 5);
00025 define('SUBMISSION_REVIEWER_RATING_GOOD', 4);
00026 define('SUBMISSION_REVIEWER_RATING_AVERAGE', 3);
00027 define('SUBMISSION_REVIEWER_RATING_POOR', 2);
00028 define('SUBMISSION_REVIEWER_RATING_VERY_POOR', 1);
00029 
00030 class ReviewAssignment extends DataObject {
00031 
00033    var $reviewerFileRevisions;
00034 
00038    function ReviewAssignment() {
00039       parent::DataObject();
00040    }
00041 
00042    //
00043    // Get/set methods
00044    //
00045 
00050    function getReviewId() {
00051       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00052       return $this->getId();
00053    }
00054 
00059    function setReviewId($reviewId) {
00060       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00061       return $this->setId($reviewId);
00062    }
00063 
00068    function getPaperId() {
00069       return $this->getData('paperId');
00070    }
00071 
00076    function setPaperId($paperId) {
00077       return $this->setData('paperId', $paperId);
00078    }
00079 
00084    function getReviewerId() {
00085       return $this->getData('reviewerId');
00086    }
00087 
00092    function setReviewerId($reviewerId) {
00093       return $this->setData('reviewerId', $reviewerId);
00094    }
00095 
00100    function getReviewerFullName() {
00101       return $this->getData('reviewerFullName');
00102    }
00103 
00108    function setReviewerFullName($reviewerFullName) {
00109       return $this->setData('reviewerFullName', $reviewerFullName);
00110    }
00111 
00116    function getComments() {
00117       return $this->getData('comments');
00118    }
00119 
00124    function setComments($comments) {
00125       return $this->setData('comments', $comments);
00126    }
00127 
00132    function getRecommendation() {
00133       return $this->getData('recommendation');
00134    }
00135 
00140    function setRecommendation($recommendation) {
00141       return $this->setData('recommendation', $recommendation);
00142    }
00143 
00148    function getDateRated() {
00149       return $this->getData('dateRated');
00150    }
00151 
00156    function setDateRated($dateRated) {
00157       return $this->setData('dateRated', $dateRated);
00158    }
00159 
00164    function getLastModified() {
00165       return $this->getData('lastModified');
00166    }
00167 
00172    function setLastModified($dateModified) {
00173       return $this->setData('lastModified', $dateModified);
00174    }
00175 
00179    function stampModified() {
00180       return $this->setLastModified(Core::getCurrentDate());
00181    }
00182 
00187    function getDateAssigned() {
00188       return $this->getData('dateAssigned');
00189    }
00190 
00195    function setDateAssigned($dateAssigned) {
00196       return $this->setData('dateAssigned', $dateAssigned);
00197    }
00198 
00203    function getDateNotified() {
00204       return $this->getData('dateNotified');
00205    }
00206 
00211    function setDateNotified($dateNotified) {
00212       return $this->setData('dateNotified', $dateNotified);
00213    }
00214 
00219    function getDateConfirmed() {
00220       return $this->getData('dateConfirmed');
00221    }
00222 
00227    function setDateConfirmed($dateConfirmed) {
00228       return $this->setData('dateConfirmed', $dateConfirmed);
00229    }
00230 
00235    function getDateCompleted() {
00236       return $this->getData('dateCompleted');
00237    }
00238 
00243    function setDateCompleted($dateCompleted) {
00244       return $this->setData('dateCompleted', $dateCompleted);
00245    }
00246 
00251    function getDateAcknowledged() {
00252       return $this->getData('dateAcknowledged');
00253    }
00254 
00259    function setDateAcknowledged($dateAcknowledged) {
00260       return $this->setData('dateAcknowledged', $dateAcknowledged);
00261    }
00262 
00267    function getDateReminded() {
00268       return $this->getData('dateReminded');
00269    }
00270 
00275    function setDateReminded($dateReminded) {
00276       return $this->setData('dateReminded', $dateReminded);
00277    }
00278 
00283    function getDateDue() {
00284       return $this->getData('dateDue');
00285    }
00286 
00291    function setDateDue($dateDue) {
00292       return $this->setData('dateDue', $dateDue);
00293    }
00294 
00299    function getDeclined() {
00300       return $this->getData('declined');
00301    }
00302 
00307    function setDeclined($declined) {
00308       return $this->setData('declined', $declined);
00309    }
00310 
00315    function getReplaced() {
00316       return $this->getData('replaced');
00317    }
00318 
00323    function setReplaced($replaced) {
00324       return $this->setData('replaced', $replaced);
00325    }
00326 
00331    function getReminderWasAutomatic() {
00332       return $this->getData('reminderWasAutomatic')==1?1:0;
00333    }
00334 
00339    function setReminderWasAutomatic($wasAutomatic) {
00340       return $this->setData('reminderWasAutomatic', $wasAutomatic);
00341    }
00342 
00347    function getCancelled() {
00348       return $this->getData('cancelled');
00349    }
00350 
00355    function setCancelled($cancelled) {
00356       return $this->setData('cancelled', $cancelled);
00357    }
00358 
00363    function getReviewerFileId() {
00364       return $this->getData('reviewerFileId');
00365    }
00366 
00371    function setReviewerFileId($reviewerFileId) {
00372       return $this->setData('reviewerFileId', $reviewerFileId);
00373    }
00374 
00379    function getReviewerFileViewable() {
00380       return $this->getData('reviewerFileViewable');
00381    }
00382 
00387    function setReviewerFileViewable($reviewerFileViewable) {
00388       return $this->setData('reviewerFileViewable', $reviewerFileViewable);
00389    }
00390 
00395    function getQuality() {
00396       return $this->getData('quality');
00397    }
00398 
00403    function setQuality($quality) {
00404       return $this->setData('quality', $quality);
00405    }
00406 
00411    function getStage() {
00412       return $this->getData('stage');
00413    }
00414 
00419    function setStage($stage) {
00420       return $this->setData('stage', $stage);
00421    }
00422 
00427    function getReviewFileId() {
00428       return $this->getData('reviewFileId');
00429    }
00430 
00435    function setReviewFileId($reviewFileId) {
00436       return $this->setData('reviewFileId', $reviewFileId);
00437    }
00438 
00443    function &getReviewFile() {
00444       $returner =& $this->getData('reviewFile');
00445       return $returner;
00446    }
00447 
00452    function setReviewFile($reviewFile) {
00453       return $this->setData('reviewFile', $reviewFile);
00454    }
00455 
00460    function getReviewRevision() {
00461       return $this->getData('reviewRevision');
00462    }
00463 
00468    function setReviewRevision($reviewRevision) {
00469       return $this->setData('reviewRevision', $reviewRevision);
00470    }  
00471 
00476    function getReviewFormId() {
00477       return $this->getData('reviewFormId');
00478    }
00479 
00484    function setReviewFormId($reviewFormId) {
00485       return $this->setData('reviewFormId', $reviewFormId);
00486    }
00487    
00488    //
00489    // Files
00490    //
00491 
00496    function &getReviewerFile() {
00497       $returner =& $this->getData('reviewerFile');
00498       return $returner;
00499    }
00500 
00505    function setReviewerFile($reviewerFile) {
00506       return $this->setData('reviewerFile', $reviewerFile);
00507    }
00508 
00513    function getReviewerFileRevisions() {
00514       return $this->reviewerFileRevisions;
00515    }
00516 
00521    function setReviewerFileRevisions($reviewerFileRevisions) {
00522       return $this->reviewerFileRevisions = $reviewerFileRevisions;
00523    }
00524 
00529    function &getSuppFiles() {
00530       $returner =& $this->getData('suppFiles');
00531       return $returner;
00532    }
00533 
00538    function setSuppFiles($suppFiles) {
00539       return $this->setData('suppFiles', $suppFiles);
00540    }
00541 
00546    function getWeeksDue() {
00547       $dateDue = $this->getDateDue();
00548       if ($dateDue === null) return null;
00549       return round((strtotime($dateDue) - time()) / (86400 * 7.0));
00550    }
00551 
00552    //
00553    // Comments
00554    //
00555 
00560    function getMostRecentPeerReviewComment() {
00561       return $this->getData('peerReviewComment');
00562    }
00563 
00568    function setMostRecentPeerReviewComment($peerReviewComment) {
00569       return $this->setData('peerReviewComment', $peerReviewComment);
00570    }
00571 
00577    function &getReviewerRecommendationOptions() {
00578       // Bring in reviewer constants
00579       import('submission.reviewer.ReviewerSubmission');
00580 
00581       static $reviewerRecommendationOptions = array(
00582          '' => 'common.chooseOne',
00583          SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT => 'reviewer.paper.decision.accept',
00584          SUBMISSION_REVIEWER_RECOMMENDATION_PENDING_REVISIONS => 'reviewer.paper.decision.pendingRevisions',
00585          SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_ELSEWHERE => 'reviewer.paper.decision.resubmitElsewhere',
00586          SUBMISSION_REVIEWER_RECOMMENDATION_DECLINE => 'reviewer.paper.decision.decline',
00587          SUBMISSION_REVIEWER_RECOMMENDATION_SEE_COMMENTS => 'reviewer.paper.decision.seeComments'
00588       );
00589       return $reviewerRecommendationOptions;
00590    }
00591 
00596    function &getReviewerRatingOptions() {
00597       static $reviewerRatingOptions = array(
00598          SUBMISSION_REVIEWER_RATING_VERY_GOOD => 'director.paper.reviewerRating.veryGood',
00599          SUBMISSION_REVIEWER_RATING_GOOD => 'director.paper.reviewerRating.good',
00600          SUBMISSION_REVIEWER_RATING_AVERAGE => 'director.paper.reviewerRating.average',
00601          SUBMISSION_REVIEWER_RATING_POOR => 'director.paper.reviewerRating.poor',
00602          SUBMISSION_REVIEWER_RATING_VERY_POOR => 'director.paper.reviewerRating.veryPoor'
00603       );
00604       return $reviewerRatingOptions;
00605    }
00606 }
00607 
00608 ?>

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