Create a new notification with the specified arguments and insert into DB
public createNotification ( $request, $userId = null, $notificationType, $contextId = null, $assocType = null, $assocId = null, $level = NOTIFICATION_LEVEL_NORMAL, $params = null, $suppressEmail = false ) : Notification | ||
$request | PKPRequest | |
$userId | int (optional) | |
$notificationType | int | |
$contextId | int | |
$assocType | int | |
$assocId | int | |
$level | int | |
$params | array | |
$suppressEmail | boolean Whether or not to suppress the notification email. | |
return | Notification | object |
/** * 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); }