Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
EditorAssignmentNotificationManager Class Reference
Inheritance diagram for EditorAssignmentNotificationManager:
NotificationManagerDelegate

Public Member Functions

 _getStageIdByNotificationType ()
 
 EditorAssignmentNotificationManager ($notificationType)
 
 getNotificationMessage ($request, $notification)
 
 getStyleClass ($notification)
 
 isVisibleToAllUsers ($notificationType, $assocType, $assocId)
 
 updateNotification ($request, $userIds, $assocType, $assocId)
 
- Public Member Functions inherited from NotificationManagerDelegate
 getIconClass ($notification)
 
 getNotificationContents ($request, $notification)
 
 getNotificationMessage ($request, $notification)
 
 getNotificationTitle ($notification)
 
 getNotificationUrl ($request, $notification)
 
 getStyleClass ($notification)
 
 isVisibleToAllUsers ($notificationType, $assocType, $assocId)
 
 NotificationManagerDelegate ($notificationType)
 
 updateNotification ($request, $userIds, $assocType, $assocId)
 

Additional Inherited Members

- Protected Member Functions inherited from NotificationManagerDelegate
 getNotificationType ()
 

Detailed Description

Editor assignment notification types manager delegate.

Definition at line 18 of file EditorAssignmentNotificationManager.inc.php.

Member Function Documentation

EditorAssignmentNotificationManager::_getStageIdByNotificationType ( )

Return the correct stage id based on the notification type.

Returns
int

Definition at line 107 of file EditorAssignmentNotificationManager.inc.php.

References NotificationManagerDelegate\getNotificationType().

Referenced by updateNotification().

EditorAssignmentNotificationManager::EditorAssignmentNotificationManager (   $notificationType)

Constructor.

Parameters
$notificationTypeint NOTIFICATION_TYPE_...

Definition at line 24 of file EditorAssignmentNotificationManager.inc.php.

EditorAssignmentNotificationManager::getNotificationMessage (   $request,
  $notification 
)

Definition at line 31 of file EditorAssignmentNotificationManager.inc.php.

EditorAssignmentNotificationManager::getStyleClass (   $notification)

Get the notification style class.

Parameters
$notificationNotification
Returns
string

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.

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

Definition at line 54 of file EditorAssignmentNotificationManager.inc.php.

EditorAssignmentNotificationManager::updateNotification (   $request,
  $userIds,
  $assocType,
  $assocId 
)

Define operations to update notifications.

Parameters
$requestPKPRequest
$userIdsarray
$assocTypeint
$assocIdint

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.

Definition at line 67 of file EditorAssignmentNotificationManager.inc.php.

References _getStageIdByNotificationType(), DAORegistry\getDAO(), and NotificationManagerDelegate\getNotificationType().


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