Open Journal Systems  3.3.0
NotifyLinkAction.inc.php
1 <?php
15 import('lib.pkp.classes.linkAction.LinkAction');
16 
18 
27  function __construct($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::__construct(
48  'notify', $ajaxModal,
49  __('submission.stageParticipants.notify'), 'notify'
50  );
51  }
52 }
53 
54 
AppLocale\requireComponents
static requireComponents()
Definition: env1/MockAppLocale.inc.php:56
AjaxModal
A modal that retrieves its content from via AJAX.
Definition: AjaxModal.inc.php:18
LinkAction
Base class defining an action that can be performed by the user in the user interface.
Definition: LinkAction.inc.php:22
NotifyLinkAction\__construct
__construct($request, &$submission, $stageId, $userId=null)
Definition: NotifyLinkAction.inc.php:27
NotifyLinkAction
An action to open up the notify part of the stage participants grid.
Definition: NotifyLinkAction.inc.php:17