e1073cf442
(WIP) notify user when mentioned in comments Fix doc, and create absolute URL for as notification link. PSR-4 compatibility changes also move notification creation to comments app Do not notify yourself unit test for controller and application smaller fixes - translatable app name - remove doubles in mention array - micro perf optimization - display name: special label for deleted users, keep user id for users that could not be fetched from userManager Comment Notification-Listener Unit Test fix email adresses remove notification when triggering comment was deleted add and adjust tests add missing @license tags simplify NotificationsController registration appinfo simplification, php docs make string easier to translate adjust test replace dispatcher-based listeners with a registration method and interface safer to not pass optional data parameter to setSubject for marking as processed. ID and mention suffices Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> update comment Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Test\Comments;
|
|
|
|
/**
|
|
* Class FakeManager
|
|
*/
|
|
class FakeManager implements \OCP\Comments\ICommentsManager {
|
|
|
|
public function get($id) {}
|
|
|
|
public function getTree($id, $limit = 0, $offset = 0) {}
|
|
|
|
public function getForObject(
|
|
$objectType,
|
|
$objectId,
|
|
$limit = 0,
|
|
$offset = 0,
|
|
\DateTime $notOlderThan = null
|
|
) {}
|
|
|
|
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null) {}
|
|
|
|
public function create($actorType, $actorId, $objectType, $objectId) {}
|
|
|
|
public function delete($id) {}
|
|
|
|
public function save(\OCP\Comments\IComment $comment) {}
|
|
|
|
public function deleteReferencesOfActor($actorType, $actorId) {}
|
|
|
|
public function deleteCommentsAtObject($objectType, $objectId) {}
|
|
|
|
public function setReadMark($objectType, $objectId, \DateTime $dateTime, \OCP\IUser $user) {}
|
|
|
|
public function getReadMark($objectType, $objectId, \OCP\IUser $user) {}
|
|
|
|
public function deleteReadMarksFromUser(\OCP\IUser $user) {}
|
|
|
|
public function deleteReadMarksOnObject($objectType, $objectId) {}
|
|
|
|
public function registerEventHandler(\Closure $closure) {}
|
|
}
|