|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($notificationType) | |
| _getStageIdByNotificationType () | |
| getNotificationMessage ($request, $notification) | |
| getStyleClass ($notification) | |
| isVisibleToAllUsers ($notificationType, $assocType, $assocId) | |
| updateNotification ($request, $userIds, $assocType, $assocId) | |
Public Member Functions inherited from NotificationManagerDelegate | |
| createNotification ($request, $userId=null, $notificationType, $contextId=null, $assocType=null, $assocId=null, $level=NOTIFICATION_LEVEL_NORMAL, $params=null, $suppressEmail=false, callable $mailConfigurator=null) | |
| getNotificationType () | |
Public Member Functions inherited from PKPNotificationOperationManager | |
| createTrivialNotification ($userId, $notificationType=NOTIFICATION_TYPE_SUCCESS, $params=null) | |
| deleteTrivialNotifications ($notifications) | |
| formatToGeneralNotification ($request, $notifications) | |
| formatToInPlaceNotification ($request, $notifications) | |
| getFormattedNotificationsForUser ($request, $userId, $level=NOTIFICATION_LEVEL_NORMAL, $contextId=null, $rangeInfo=null, $notificationTemplate='notification/notification.tpl') | |
| getIconClass ($notification) | |
| getNotificationContents ($request, $notification) | |
| getNotificationTitle ($notification) | |
| getNotificationUrl ($request, $notification) | |
| getParamsForCurrentLocale ($params) | |
Additional Inherited Members | |
Protected Member Functions inherited from NotificationManagerDelegate | |
| multipleTypesUpdate () | |
Protected Member Functions inherited from PKPNotificationOperationManager | |
| fetchLinkActionNotificationContent ($linkAction, $request) | |
| getMailTemplate ($emailKey=null) | |
| getUserBlockedEmailedNotifications ($userId, $contextId) | |
| getUserBlockedNotifications ($userId, $contextId) | |
| sendNotificationEmail ($request, $notification, ?int $contextId, callable $mailConfigurator=null) | |
Editor assignment notification types manager delegate.
Definition at line 18 of file EditorAssignmentNotificationManager.inc.php.
| EditorAssignmentNotificationManager::__construct | ( | $notificationType | ) |
Constructor.
| $notificationType | int NOTIFICATION_TYPE_... |
Reimplemented from NotificationManagerDelegate.
Definition at line 24 of file EditorAssignmentNotificationManager.inc.php.
| EditorAssignmentNotificationManager::_getStageIdByNotificationType | ( | ) |
Return the correct stage id based on the notification type.
Definition at line 107 of file EditorAssignmentNotificationManager.inc.php.
References NotificationManagerDelegate\getNotificationType().
Referenced by updateNotification().
| EditorAssignmentNotificationManager::getNotificationMessage | ( | $request, | |
| $notification | |||
| ) |
Reimplemented from PKPNotificationOperationManager.
Definition at line 31 of file EditorAssignmentNotificationManager.inc.php.
| EditorAssignmentNotificationManager::getStyleClass | ( | $notification | ) |
Get the notification style class.
| $notification | Notification |
Reimplemented from PKPNotificationOperationManager.
Definition at line 47 of file EditorAssignmentNotificationManager.inc.php.
| EditorAssignmentNotificationManager::isVisibleToAllUsers | ( | $notificationType, | |
| $assocType, | |||
| $assocId | |||
| ) |
Whether any notification with the passed notification type is visible to all users or not.
| $notificationType | int |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Reimplemented from PKPNotificationOperationManager.
Definition at line 54 of file EditorAssignmentNotificationManager.inc.php.
| EditorAssignmentNotificationManager::updateNotification | ( | $request, | |
| $userIds, | |||
| $assocType, | |||
| $assocId | |||
| ) |
Define operations to update notifications.
| $request | PKPRequest Request object |
| $userIds | array List of user IDs to notify |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int ID corresponding to $assocType |
If we have a stage without a manager role user, then a notification must be inserted or maintained for the submission. If a user with this role is assigned to the stage, the notification should be deleted. Every user that have access to the stage should see the notification.
Reimplemented from NotificationManagerDelegate.
Definition at line 67 of file EditorAssignmentNotificationManager.inc.php.
References _getStageIdByNotificationType(), NotificationManagerDelegate\createNotification(), DAORegistry\getDAO(), and NotificationManagerDelegate\getNotificationType().