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. | |
리턴 | Notification | object |