_notificationType = $notificationType; } /** * Get the current notification type this manager is handling. * @return int NOTIFICATION_TYPE_... */ function getNotificationType() { return $this->_notificationType; } /** * Define operations to update notifications. * @param $request PKPRequest Request object * @param $userIds array List of user IDs to notify * @param $assocType int ASSOC_TYPE_... * @param $assocId int ID corresponding to $assocType * @return boolean True iff success */ function updateNotification($request, $userIds, $assocType, $assocId) { return false; } /** * Check if this manager delegate can handle the * creation of the passed notification type. * @copydoc PKPNotificationOperationManager::createNotification() */ function createNotification($request, $userId = null, $notificationType, $contextId = null, $assocType = null, $assocId = null, $level = NOTIFICATION_LEVEL_NORMAL, $params = null, $suppressEmail = false) { assert($notificationType == $this->getNotificationType() || $this->multipleTypesUpdate()); return parent::createNotification($request, $userId, $notificationType, $contextId, $assocType, $assocId, $level, $params, $suppressEmail); } /** * Flag a notification manager that handles multiple notification * types inside the update method within the same call. Only set * this to true if you're sure the notification manager provides * all information for all notification types you're handling (via * the getNotification... methods). * @return boolean */ protected function multipleTypesUpdate() { return false; } } ?>