Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ApproveProofsLinkAction.inc.php
1 <?php
2 
20 import('lib.pkp.classes.linkAction.LinkAction');
21 
23 
32  function ApproveProofsLinkAction($request, $monographId, $publicationFormatId, $image = null) {
33 
34  // Create the actionArgs array
35  $actionArgs = array();
36  $actionArgs['submissionId'] = $monographId;
37  $actionArgs['stageId'] = WORKFLOW_STAGE_ID_PRODUCTION;
38  $actionArgs['publicationFormatId'] = $publicationFormatId;
39 
40  $dispatcher = $request->getDispatcher();
41  $modal = new AjaxModal(
42  $dispatcher->url(
43  $request, ROUTE_COMPONENT, null,
44  'modals.editorDecision.EditorDecisionHandler',
45  'approveProofs', null,
46  $actionArgs),
47  __('editor.submission.decision.approveProofs'),
48  'modal_approve_proofs'
49  );
50 
51  $toolTip = ($image == 'completed') ? __('grid.action.proofApproved') : null;
52  // Configure the link action.
53  parent::LinkAction('approveProofs-' . $publicationFormatId, $modal, __('editor.submission.decision.approveProofs'), $image, $toolTip);
54  }
55 }
56 
57 ?>
ApproveProofsLinkAction($request, $monographId, $publicationFormatId, $image=null)
Class for approving proof files.
A modal that retrieves its content from via AJAX.
Base class defining an action that can be performed by the user in the user interface.