00001 <?php
00002
00016
00017
00018
00019 define('SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT', 1);
00020 define('SUBMISSION_REVIEWER_RECOMMENDATION_PENDING_REVISIONS', 2);
00021 define('SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_HERE', 3);
00022 define('SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_ELSEWHERE', 4);
00023 define('SUBMISSION_REVIEWER_RECOMMENDATION_DECLINE', 5);
00024 define('SUBMISSION_REVIEWER_RECOMMENDATION_SEE_COMMENTS', 6);
00025
00026 define('SUBMISSION_REVIEWER_RATING_VERY_GOOD', 5);
00027 define('SUBMISSION_REVIEWER_RATING_GOOD', 4);
00028 define('SUBMISSION_REVIEWER_RATING_AVERAGE', 3);
00029 define('SUBMISSION_REVIEWER_RATING_POOR', 2);
00030 define('SUBMISSION_REVIEWER_RATING_VERY_POOR', 1);
00031
00032 class ReviewAssignment extends DataObject {
00033
00035 var $reviewerFileRevisions;
00036
00040 function ReviewAssignment() {
00041 parent::DataObject();
00042 }
00043
00044
00045
00046
00047
00052 function getReviewId() {
00053 return $this->getData('reviewId');
00054 }
00055
00060 function setReviewId($reviewId) {
00061 return $this->setData('reviewId', $reviewId);
00062 }
00063
00068 function getArticleId() {
00069 return $this->getData('articleId');
00070 }
00071
00076 function setArticleId($articleId) {
00077 return $this->setData('articleId', $articleId);
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 getCompetingInterests() {
00133 return $this->getData('competingInterests');
00134 }
00135
00140 function setCompetingInterests($competingInterests) {
00141 return $this->setData('competingInterests', $competingInterests);
00142 }
00143
00148 function getRecommendation() {
00149 return $this->getData('recommendation');
00150 }
00151
00156 function setRecommendation($recommendation) {
00157 return $this->setData('recommendation', $recommendation);
00158 }
00159
00164 function getDateRated() {
00165 return $this->getData('dateRated');
00166 }
00167
00172 function setDateRated($dateRated) {
00173 return $this->setData('dateRated', $dateRated);
00174 }
00175
00180 function getLastModified() {
00181 return $this->getData('lastModified');
00182 }
00183
00188 function setLastModified($dateModified) {
00189 return $this->setData('lastModified', $dateModified);
00190 }
00191
00195 function stampModified() {
00196 return $this->setLastModified(Core::getCurrentDate());
00197 }
00198
00203 function getDateAssigned() {
00204 return $this->getData('dateAssigned');
00205 }
00206
00211 function setDateAssigned($dateAssigned) {
00212 return $this->setData('dateAssigned', $dateAssigned);
00213 }
00214
00219 function getDateNotified() {
00220 return $this->getData('dateNotified');
00221 }
00222
00227 function setDateNotified($dateNotified) {
00228 return $this->setData('dateNotified', $dateNotified);
00229 }
00230
00235 function getDateConfirmed() {
00236 return $this->getData('dateConfirmed');
00237 }
00238
00243 function setDateConfirmed($dateConfirmed) {
00244 return $this->setData('dateConfirmed', $dateConfirmed);
00245 }
00246
00251 function getDateCompleted() {
00252 return $this->getData('dateCompleted');
00253 }
00254
00259 function setDateCompleted($dateCompleted) {
00260 return $this->setData('dateCompleted', $dateCompleted);
00261 }
00262
00267 function getDateAcknowledged() {
00268 return $this->getData('dateAcknowledged');
00269 }
00270
00275 function setDateAcknowledged($dateAcknowledged) {
00276 return $this->setData('dateAcknowledged', $dateAcknowledged);
00277 }
00278
00283 function getDateReminded() {
00284 return $this->getData('dateReminded');
00285 }
00286
00291 function setDateReminded($dateReminded) {
00292 return $this->setData('dateReminded', $dateReminded);
00293 }
00294
00299 function getDateDue() {
00300 return $this->getData('dateDue');
00301 }
00302
00307 function setDateDue($dateDue) {
00308 return $this->setData('dateDue', $dateDue);
00309 }
00310
00315 function getDeclined() {
00316 return $this->getData('declined');
00317 }
00318
00323 function setDeclined($declined) {
00324 return $this->setData('declined', $declined);
00325 }
00326
00331 function getReplaced() {
00332 return $this->getData('replaced');
00333 }
00334
00339 function setReplaced($replaced) {
00340 return $this->setData('replaced', $replaced);
00341 }
00342
00347 function getReminderWasAutomatic() {
00348 return $this->getData('reminderWasAutomatic')==1?1:0;
00349 }
00350
00355 function setReminderWasAutomatic($wasAutomatic) {
00356 return $this->setData('reminderWasAutomatic', $wasAutomatic);
00357 }
00358
00363 function getCancelled() {
00364 return $this->getData('cancelled');
00365 }
00366
00371 function setCancelled($cancelled) {
00372 return $this->setData('cancelled', $cancelled);
00373 }
00374
00379 function getReviewerFileId() {
00380 return $this->getData('reviewerFileId');
00381 }
00382
00387 function setReviewerFileId($reviewerFileId) {
00388 return $this->setData('reviewerFileId', $reviewerFileId);
00389 }
00390
00395 function getReviewerFileViewable() {
00396 return $this->getData('reviewerFileViewable');
00397 }
00398
00403 function setReviewerFileViewable($reviewerFileViewable) {
00404 return $this->setData('reviewerFileViewable', $reviewerFileViewable);
00405 }
00406
00411 function getQuality() {
00412 return $this->getData('quality');
00413 }
00414
00419 function setQuality($quality) {
00420 return $this->setData('quality', $quality);
00421 }
00422
00427 function getRound() {
00428 return $this->getData('round');
00429 }
00430
00435 function setRound($round) {
00436 return $this->setData('round', $round);
00437 }
00438
00443 function getReviewFileId() {
00444 return $this->getData('reviewFileId');
00445 }
00446
00451 function setReviewFileId($reviewFileId) {
00452 return $this->setData('reviewFileId', $reviewFileId);
00453 }
00454
00459 function &getReviewFile() {
00460 $returner =& $this->getData('reviewFile');
00461 return $returner;
00462 }
00463
00468 function setReviewFile($reviewFile) {
00469 return $this->setData('reviewFile', $reviewFile);
00470 }
00471
00476 function getReviewRevision() {
00477 return $this->getData('reviewRevision');
00478 }
00479
00484 function setReviewRevision($reviewRevision) {
00485 return $this->setData('reviewRevision', $reviewRevision);
00486 }
00487
00492 function getReviewFormId() {
00493 return $this->getData('reviewFormId');
00494 }
00495
00500 function setReviewFormId($reviewFormId) {
00501 return $this->setData('reviewFormId', $reviewFormId);
00502 }
00503
00504
00505
00506
00507
00512 function &getReviewerFile() {
00513 $returner =& $this->getData('reviewerFile');
00514 return $returner;
00515 }
00516
00521 function setReviewerFile($reviewerFile) {
00522 return $this->setData('reviewerFile', $reviewerFile);
00523 }
00524
00529 function getReviewerFileRevisions() {
00530 return $this->reviewerFileRevisions;
00531 }
00532
00537 function setReviewerFileRevisions($reviewerFileRevisions) {
00538 return $this->reviewerFileRevisions = $reviewerFileRevisions;
00539 }
00540
00545 function &getSuppFiles() {
00546 $returner =& $this->getData('suppFiles');
00547 return $returner;
00548 }
00549
00554 function setSuppFiles($suppFiles) {
00555 return $this->setData('suppFiles', $suppFiles);
00556 }
00557
00562 function getWeeksDue() {
00563 $dateDue = $this->getDateDue();
00564 if ($dateDue === null) return null;
00565 return round((strtotime($dateDue) - time()) / (86400 * 7.0));
00566 }
00567
00568
00569
00570
00571
00576 function getMostRecentPeerReviewComment() {
00577 return $this->getData('peerReviewComment');
00578 }
00579
00584 function setMostRecentPeerReviewComment($peerReviewComment) {
00585 return $this->setData('peerReviewComment', $peerReviewComment);
00586 }
00587
00593 function &getReviewerRecommendationOptions() {
00594
00595 import('submission.reviewer.ReviewerSubmission');
00596
00597 static $reviewerRecommendationOptions = array(
00598 '' => 'common.chooseOne',
00599 SUBMISSION_REVIEWER_RECOMMENDATION_ACCEPT => 'reviewer.article.decision.accept',
00600 SUBMISSION_REVIEWER_RECOMMENDATION_PENDING_REVISIONS => 'reviewer.article.decision.pendingRevisions',
00601 SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_HERE => 'reviewer.article.decision.resubmitHere',
00602 SUBMISSION_REVIEWER_RECOMMENDATION_RESUBMIT_ELSEWHERE => 'reviewer.article.decision.resubmitElsewhere',
00603 SUBMISSION_REVIEWER_RECOMMENDATION_DECLINE => 'reviewer.article.decision.decline',
00604 SUBMISSION_REVIEWER_RECOMMENDATION_SEE_COMMENTS => 'reviewer.article.decision.seeComments'
00605 );
00606 return $reviewerRecommendationOptions;
00607 }
00608
00613 function &getReviewerRatingOptions() {
00614 static $reviewerRatingOptions = array(
00615 SUBMISSION_REVIEWER_RATING_VERY_GOOD => 'editor.article.reviewerRating.veryGood',
00616 SUBMISSION_REVIEWER_RATING_GOOD => 'editor.article.reviewerRating.good',
00617 SUBMISSION_REVIEWER_RATING_AVERAGE => 'editor.article.reviewerRating.average',
00618 SUBMISSION_REVIEWER_RATING_POOR => 'editor.article.reviewerRating.poor',
00619 SUBMISSION_REVIEWER_RATING_VERY_POOR => 'editor.article.reviewerRating.veryPoor'
00620 );
00621 return $reviewerRatingOptions;
00622 }
00623 }
00624
00625 ?>