Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
NotifyLinkAction.inc.php
1 <?php
15 import('lib.pkp.classes.linkAction.LinkAction');
16 
18 
27  function NotifyLinkAction($request, &$submission, $stageId, $userId = null) {
28  AppLocale::requireComponents(LOCALE_COMPONENT_APP_SUBMISSION);
29  // Prepare request arguments
30  $requestArgs['submissionId'] = $submission->getId();
31  $requestArgs['stageId'] = $stageId;
32  if ($userId) $requestArgs['userId'] = $userId;
33 
34  import('lib.pkp.classes.linkAction.request.AjaxModal');
35  $router = $request->getRouter();
36  $ajaxModal = new AjaxModal(
37  $router->url(
38  $request, null,
39  'grid.users.stageParticipant.StageParticipantGridHandler', 'viewNotify',
40  null, $requestArgs
41  ),
42  __('submission.stageParticipants.notify'),
43  'modal_email'
44  );
45 
46  // Configure the file link action.
47  parent::LinkAction(
48  'notify', $ajaxModal,
49  __('submission.stageParticipants.notify'), 'notify'
50  );
51  }
52 }
53 
54 ?>
NotifyLinkAction($request, &$submission, $stageId, $userId=null)
static requireComponents()
A modal that retrieves its content from via AJAX.
An action to open up the notify part of the stage participants grid.
Base class defining an action that can be performed by the user in the user interface.