| Server IP : 195.134.90.114 / Your IP : 216.73.216.86 Web Server : Apache/2.4.58 System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/lib/pkp/controllers/modals/editorDecision/form/ |
Upload File : |
<?php
/**
* @file controllers/modals/editorDecision/form/NewReviewRoundForm.inc.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class NewReviewRoundForm
* @ingroup controllers_modal_editorDecision_form
*
* @brief Form for creating a new review round (after the first)
*/
import('lib.pkp.classes.controllers.modals.editorDecision.form.EditorDecisionForm');
import('lib.pkp.classes.submission.reviewRound.ReviewRound');
class NewReviewRoundForm extends EditorDecisionForm {
/**
* Constructor.
* @param $submission Submission
* @param $decision int
* @param $stageid int|null
* @param $reviewRound ReviewRound|null
*/
function __construct($submission, $decision = SUBMISSION_EDITOR_DECISION_NEW_ROUND, $stageId = null, $reviewRound = null) {
parent::__construct($submission, $decision, $stageId, 'controllers/modals/editorDecision/form/newReviewRoundForm.tpl', $reviewRound);
// WARNING: this constructor may be invoked dynamically by
// EditorDecisionHandler::_instantiateEditorDecision.
}
//
// Implement protected template methods from Form
//
/**
* @copydoc Form::execute()
* @return integer The new review round number
*/
function execute(...$functionArgs) {
$request = Application::get()->getRequest();
// Retrieve the submission.
$submission = $this->getSubmission();
// Get this form decision actions labels.
$actionLabels = (new EditorDecisionActionsManager())->getActionLabels($request->getContext(), $submission, $this->getStageId(), $this->_getDecisions());
// Record the decision.
$reviewRound = $this->getReviewRound();
import('lib.pkp.classes.submission.action.EditorAction');
$editorAction = new EditorAction();
$editorAction->recordDecision($request, $submission, SUBMISSION_EDITOR_DECISION_NEW_ROUND, $actionLabels, $reviewRound);
// Update the review round status.
$reviewRoundDao = DAORegistry::getDAO('ReviewRoundDAO'); /* @var $reviewRoundDao ReviewRoundDAO */
$reviewRoundDao->updateStatus($reviewRound, REVIEW_ROUND_STATUS_PENDING_REVIEWERS);
// Create a new review round.
$newRound = $this->_initiateReviewRound(
$submission, $submission->getStageId(),
$request, REVIEW_ROUND_STATUS_PENDING_REVIEWERS
);
parent::execute(...$functionArgs);
return $newRound;
}
//
// Private functions
//
/**
* Get this form decisions.
* @return array
*/
function _getDecisions() {
return array(
SUBMISSION_EDITOR_DECISION_NEW_ROUND
);
}
}