コード例 #1
0
 /**
  * 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));
 }
コード例 #2
0
 /**
  * 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));
 }
コード例 #3
0
 /**
  * Constructor.
  * @param $reviewerSubmission ReviewerSubmission
  */
 function ReviewerReviewStep2Form($request, $reviewerSubmission, $reviewAssignment)
 {
     parent::ReviewerReviewForm($request, $reviewerSubmission, $reviewAssignment, 2);
 }
コード例 #4
0
 /**
  * Constructor.
  * @param $reviewerSubmission ReviewerSubmission
  */
 function ReviewerReviewStep1Form($reviewerSubmission = null)
 {
     parent::ReviewerReviewForm($reviewerSubmission, 1);
     $press =& Request::getPress();
 }
コード例 #5
0
 /**
  * Constructor.
  * @param $reviewerSubmission ReviewerSubmission
  */
 function ReviewerReviewStep2Form($request, $reviewerSubmission = null)
 {
     parent::ReviewerReviewForm($request, $reviewerSubmission, 2);
 }