Open Journal Systems  3.3.0
ApproveSubmissionNotificationManager.inc.php
1 <?php
2 
17 import('lib.pkp.classes.notification.managerDelegate.PKPApproveSubmissionNotificationManager');
18 
20 
25  function __construct($notificationType) {
26  parent::__construct($notificationType);
27  }
28 
32  function getNotificationTitle($notification) {
33  switch ($notification->getType()) {
34  case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
35  case NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION:
36  return __('notification.type.approveSubmissionTitle');
37  }
38  }
39 
43  public function getNotificationMessage($request, $notification) {
44  switch ($notification->getType()) {
45  case NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION:
46  return __('notification.type.formatNeedsApprovedSubmission');
47  case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
48  return __('notification.type.approveSubmission');
49  }
50 
51  return parent::getNotificationMessage($request, $notification);
52  }
53 }
54 
ApproveSubmissionNotificationManager\getNotificationMessage
getNotificationMessage($request, $notification)
Definition: ApproveSubmissionNotificationManager.inc.php:43
PKPApproveSubmissionNotificationManager
Approve submission notification type manager delegate.
Definition: PKPApproveSubmissionNotificationManager.inc.php:18
ApproveSubmissionNotificationManager\__construct
__construct($notificationType)
Definition: ApproveSubmissionNotificationManager.inc.php:25
ApproveSubmissionNotificationManager\getNotificationTitle
getNotificationTitle($notification)
Definition: ApproveSubmissionNotificationManager.inc.php:32
ApproveSubmissionNotificationManager
Notification manager delegate that handles notifications related with submission approval process.
Definition: ApproveSubmissionNotificationManager.inc.php:19