17 import(
'lib.pkp.classes.notification.PKPNotificationManager');
27 $router = $request->getRouter();
28 $dispatcher = $router->getDispatcher();
30 switch ($notification->getType()) {
32 case NOTIFICATION_TYPE_SUBMISSION_SUBMITTED:
34 $context = $contextDao->getById($notification->getContextId());
35 return $dispatcher->url($request, ROUTE_PAGE, $context->getPath(),
'workflow',
'production', $notification->getAssocId());
37 return parent::getNotificationUrl($request, $notification);
47 assert($notification->getAssocType() == ASSOC_TYPE_SUBMISSION);
48 assert(is_numeric($notification->getAssocId()));
50 $article = $submissionDao->getById($notification->getAssocId());
51 if (!$article)
return null;
52 return $article->getLocalizedTitle();
61 switch ($notification->getType()) {
62 case NOTIFICATION_TYPE_NEW_ANNOUNCEMENT:
63 return 'notifyIconNewAnnouncement';
64 default:
return parent::getIconClass($notification);
71 protected function getMgrDelegate($notificationType, $assocType, $assocId) {
72 switch ($notificationType) {
73 case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
74 assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
75 import(
'classes.notification.managerDelegate.ApproveSubmissionNotificationManager');
79 return parent::getMgrDelegate($notificationType, $assocType, $assocId);