apps/comments/lib/Notification/Listener.php
/**
	 * creates a notification instance and fills it with comment data
	 *
	 * @param IComment $comment
	 * @return \OCP\Notification\INotification
	 */
creates a notification instance and fills it with comment data
@param IComment $comment
@return \OCP\Notification\INotification
creates a notification instance and fills it with comment data @param IComment $comment @return \ OCP \ Notification \ INotification
public function instantiateNotification(IComment $comment) {
		$notification = $this->notificationManager->createNotification();
		$notification
			->setApp('comments')
			->setObject('comment', $comment->getId())
			->setSubject('mention', [ $comment->getObjectType(), $comment->getObjectId() ])
			->setDateTime($comment->getCreationDateTime());
		return $notification;
	}
public function instantiateNotification ( IComment $ comment ) { $ notification = $ this -> notificationManager -> createNotification ( ) ; $ notification -> setApp ( 'comments' ) -> setObject ( 'comment' , $ comment -> getId ( ) ) -> setSubject ( 'mention' , [ $ comment -> getObjectType ( ) , $ comment -> getObjectId ( ) ] ) -> setDateTime ( $ comment -> getCreationDateTime ( ) ) ; return $ notification ; }
creates a notification instance and fills it with comment data
 @param IComment $comment
 @return \OCP\Notification\INotification
creates a notification instance and fills it with comment data @param IComment $comment @return \ OCP \ Notification \ INotification