Open Monograph Press  3.3.0
NotificationManager Class Reference
Inheritance diagram for NotificationManager:
PKPNotificationManager PKPNotificationOperationManager INotificationInfoProvider

Public Member Functions

 getIconClass ($notification)
 
 getNotificationTitle ($notification)
 
 getStyleClass ($notification)
 
 isVisibleToAllUsers ($notificationType, $assocType, $assocId)
 
- Public Member Functions inherited from PKPNotificationManager
 getNotificationContents ($request, $notification)
 
 getNotificationMessage ($request, $notification)
 
 getNotificationUrl ($request, $notification)
 
 updateNotification ($request, $notificationTypes, $userIds, $assocType, $assocId)
 
- Public Member Functions inherited from PKPNotificationOperationManager
 createNotification ($request, $userId=null, $notificationType, $contextId=null, $assocType=null, $assocId=null, $level=NOTIFICATION_LEVEL_NORMAL, $params=null, $suppressEmail=false, callable $mailConfigurator=null)
 
 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')
 
 getParamsForCurrentLocale ($params)
 

Protected Member Functions

 getMgrDelegate ($notificationType, $assocType, $assocId)
 
- Protected Member Functions inherited from PKPNotificationManager
 getByDelegate ($notificationType, $assocType, $assocId, $operationName, $parameters)
 
- 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)
 

Detailed Description

Definition at line 19 of file NotificationManager.inc.php.

Member Function Documentation

◆ getIconClass()

NotificationManager::getIconClass (   $notification)

Provide the notification message as default content. Get the notification contents. Content is anything that's more than text, like presenting link actions inside fetched template files.

Parameters
$requestPKPRequest
$notificationNotification
Returns
string

Reimplemented from PKPNotificationManager.

Definition at line 37 of file NotificationManager.inc.php.

◆ getMgrDelegate()

NotificationManager::getMgrDelegate (   $notificationType,
  $assocType,
  $assocId 
)
protected

Get the notification manager delegate based on the passed notification type.

Parameters
$notificationTypeint
$assocTypeint
$assocIdint
Returns
mixed Null or NotificationManagerDelegate

Reimplemented from PKPNotificationManager.

Definition at line 73 of file NotificationManager.inc.php.

◆ getNotificationTitle()

NotificationManager::getNotificationTitle (   $notification)

Provide the notification message as default content. Get the notification contents. Content is anything that's more than text, like presenting link actions inside fetched template files.

Parameters
$requestPKPRequest
$notificationNotification
Returns
string

Reimplemented from PKPNotificationManager.

Definition at line 26 of file NotificationManager.inc.php.

◆ getStyleClass()

NotificationManager::getStyleClass (   $notification)

Provide the notification message as default content. Get the notification contents. Content is anything that's more than text, like presenting link actions inside fetched template files.

Parameters
$requestPKPRequest
$notificationNotification
Returns
string

Reimplemented from PKPNotificationManager.

Definition at line 48 of file NotificationManager.inc.php.

◆ isVisibleToAllUsers()

NotificationManager::isVisibleToAllUsers (   $notificationType,
  $assocType,
  $assocId 
)

Whether any notification with the passed notification type is visible to all users or not.

Parameters
$notificationTypeint
$assocTypeint ASSOC_TYPE_...
$assocIdint
Returns
boolean

Reimplemented from PKPNotificationManager.

Definition at line 61 of file NotificationManager.inc.php.


The documentation for this class was generated from the following file: