/** * Constructor. * @param $reviewerSubmission ReviewerSubmission * @param $reviewAssignment ReviewAssignment */ function ReviewerReviewStep3Form($request, $reviewerSubmission, $reviewAssignment) { parent::ReviewerReviewForm($request, $reviewerSubmission, $reviewAssignment, 3); // Validation checks for this form $reviewFormElementDao = DAORegistry::getDAO('ReviewFormElementDAO'); $requiredReviewFormElementIds = $reviewFormElementDao->getRequiredReviewFormElementIds($reviewAssignment->getReviewFormId()); $this->addCheck(new FormValidatorCustom($this, 'reviewFormResponses', 'required', 'reviewer.submission.reviewFormResponse.form.responseRequired', create_function('$reviewFormResponses, $requiredReviewFormElementIds', 'foreach ($requiredReviewFormElementIds as $requiredReviewFormElementId) { if (!isset($reviewFormResponses[$requiredReviewFormElementId]) || $reviewFormResponses[$requiredReviewFormElementId] == \'\') return false; } return true;'), array($requiredReviewFormElementIds))); $this->addCheck(new FormValidatorPost($this)); }
/** * Constructor. * @param $reviewerSubmission ReviewerSubmission * @param $reviewAssignment ReviewAssignment */ function ReviewerReviewStep3Form($request, $reviewerSubmission, $reviewAssignment) { parent::ReviewerReviewForm($request, $reviewerSubmission, 3); $this->_reviewAssignment =& $reviewAssignment; // Validation checks for this form // FIXME #5123: Include when review form infrastructure is in place //$reviewFormElementDao =& DAORegistry::getDAO('ReviewFormElementDAO'); //$requiredReviewFormElementIds = $reviewFormElementDao->getRequiredReviewFormElementIds($this->reviewAssignment->getReviewFormId()); //$this->addCheck(new FormValidatorCustom($this, 'reviewFormResponses', 'required', 'reviewer.monograph.reviewFormResponse.form.responseRequired', create_function('$reviewFormResponses, $requiredReviewFormElementIds', 'foreach ($requiredReviewFormElementIds as $requiredReviewFormElementId) { if (!isset($reviewFormResponses[$requiredReviewFormElementId]) || $reviewFormResponses[$requiredReviewFormElementId] == \'\') return false; } return true;'), array($requiredReviewFormElementIds))); $this->addCheck(new FormValidatorPost($this)); }
/** * Constructor. * @param $reviewerSubmission ReviewerSubmission */ function ReviewerReviewStep2Form($request, $reviewerSubmission, $reviewAssignment) { parent::ReviewerReviewForm($request, $reviewerSubmission, $reviewAssignment, 2); }
/** * Constructor. * @param $reviewerSubmission ReviewerSubmission */ function ReviewerReviewStep1Form($reviewerSubmission = null) { parent::ReviewerReviewForm($reviewerSubmission, 1); $press =& Request::getPress(); }
/** * Constructor. * @param $reviewerSubmission ReviewerSubmission */ function ReviewerReviewStep2Form($request, $reviewerSubmission = null) { parent::ReviewerReviewForm($request, $reviewerSubmission, 2); }