17 import(
'lib.pkp.classes.notification.PKPNotificationManager');
27 switch ($notification->getType()) {
28 case NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD:
29 return __(
'notification.type.configurePaymentMethod.title');
31 return parent::getNotificationTitle($notification);
38 switch ($notification->getType()) {
39 case NOTIFICATION_TYPE_REVIEWER_COMMENT:
40 return 'notifyIconNewComment';
42 return parent::getIconClass($notification);
49 switch ($notification->getType()) {
50 case NOTIFICATION_TYPE_LAYOUT_ASSIGNMENT:
51 case NOTIFICATION_TYPE_INDEX_ASSIGNMENT:
52 case NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD:
53 return NOTIFICATION_STYLE_CLASS_WARNING;
55 return parent::getStyleClass($notification);
62 switch ($notificationType) {
63 case NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD:
66 return parent::isVisibleToAllUsers($notificationType, $assocType, $assocId);
74 switch ($notificationType) {
75 case NOTIFICATION_TYPE_EDITOR_ASSIGNMENT_INTERNAL_REVIEW:
76 assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
77 import(
'lib.pkp.classes.notification.managerDelegate.EditorAssignmentNotificationManager');
79 case NOTIFICATION_TYPE_EDITOR_DECISION_INTERNAL_REVIEW:
80 assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
81 import(
'lib.pkp.classes.notification.managerDelegate.EditorDecisionNotificationManager');
83 case NOTIFICATION_TYPE_PENDING_INTERNAL_REVISIONS:
84 assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
85 import(
'lib.pkp.classes.notification.managerDelegate.PendingRevisionsNotificationManager');
87 case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
88 case NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION:
89 case NOTIFICATION_TYPE_VISIT_CATALOG:
90 assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
91 import(
'classes.notification.managerDelegate.ApproveSubmissionNotificationManager');
95 return parent::getMgrDelegate($notificationType, $assocType, $assocId);