Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AddRevisionLinkAction.inc.php
1 <?php
2 
16 import('lib.pkp.controllers.api.file.linkAction.BaseAddFileLinkAction');
17 
19 
28  function AddRevisionLinkAction($request, $reviewRound, $uploaderRoles, $uploaderGroupIds = null) {
29  // Bring in the submission file constants.
30  import('lib.pkp.classes.submission.SubmissionFile');
31 
32  // Create the action arguments array.
33  $actionArgs = array(
34  'fileStage' => SUBMISSION_FILE_REVIEW_REVISION,
35  'stageId' => $reviewRound->getStageId(),
36  'reviewRoundId' => $reviewRound->getId(),
37  'revisionOnly' => '1'
38  );
39 
40  // Call the parent class constructor.
41  parent::BaseAddFileLinkAction(
42  $request, $reviewRound->getSubmissionId(), $reviewRound->getStageId(), $uploaderRoles, $uploaderGroupIds, $actionArgs,
43  __('submission.review.uploadRevisionToRound', array('round' => $reviewRound->getRound())),
44  __('submission.addFile')
45  );
46  }
47 }
48 
49 ?>
AddRevisionLinkAction($request, $reviewRound, $uploaderRoles, $uploaderGroupIds=null)
An action to upload a revision of file currently under review.
Abstract base class for file upload actions.