Inheritance: implements INotificationInfoProvider
 /**
  * Check if the manager delegate can send to mailing list
  * the passed type of notification.
  * @copydoc PKPNotificationOperationManager::sendToMailingList()
  */
 function sendToMailingList($request, $notification)
 {
     assert($notification->getType() !== $this->getNotificationType() || $this->multipleTypesUpdate());
     parent::sendToMailingList($request, $notification);
 }
コード例 #2
0
 /**
  * @copydoc PKPNotificationOperationManager::isVisibleToAllUsers()
  */
 public function isVisibleToAllUsers($notificationType, $assocType, $assocId)
 {
     $isVisible = parent::isVisibleToAllUsers($notificationType, $assocType, $assocId);
     switch ($notificationType) {
         case NOTIFICATION_TYPE_REVIEW_ROUND_STATUS:
         case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
         case NOTIFICATION_TYPE_VISIT_CATALOG:
         case NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD:
             $isVisible = true;
             break;
         default:
             $delegateResult = $this->getByDelegate($notificationType, $assocType, $assocId, __FUNCTION__, array($notificationType, $assocType, $assocId));
             if (!is_null($delegateResult)) {
                 $isVisible = $delegateResult;
             }
             break;
     }
     return $isVisible;
 }
コード例 #3
0
 /**
  * Constructor.
  */
 function PKPNotificationManager()
 {
     parent::PKPNotificationOperationManager();
 }
コード例 #4
0
 /**
  * Constructor.
  * @param $request PKPRequest
  * @param $notificationType int
  */
 function NotificationManagerDelegate($notificationType)
 {
     $this->_notificationType = $notificationType;
     parent::PKPNotificationOperationManager();
 }