2015-12-03 20:53:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Test\Comments;
|
2017-08-30 08:56:02 +00:00
|
|
|
use OCP\Comments\IComment;
|
|
|
|
use OCP\Comments\ICommentsManager;
|
2017-03-30 08:44:05 +00:00
|
|
|
use OCP\IUser;
|
2015-12-03 20:53:58 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class FakeManager
|
|
|
|
*/
|
2017-08-30 08:56:02 +00:00
|
|
|
class FakeManager implements ICommentsManager {
|
2015-12-03 20:53:58 +00:00
|
|
|
|
|
|
|
public function get($id) {}
|
|
|
|
|
|
|
|
public function getTree($id, $limit = 0, $offset = 0) {}
|
|
|
|
|
|
|
|
public function getForObject(
|
|
|
|
$objectType,
|
|
|
|
$objectId,
|
|
|
|
$limit = 0,
|
|
|
|
$offset = 0,
|
|
|
|
\DateTime $notOlderThan = null
|
|
|
|
) {}
|
|
|
|
|
2018-04-19 15:12:07 +00:00
|
|
|
public function getForObjectSince(
|
|
|
|
string $objectType,
|
|
|
|
string $objectId,
|
|
|
|
int $lastKnownCommentId,
|
|
|
|
string $sortDirection = 'asc',
|
|
|
|
int $limit = 30
|
|
|
|
): array { return []; }
|
|
|
|
|
2018-07-30 07:41:51 +00:00
|
|
|
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '') {}
|
2015-12-03 20:53:58 +00:00
|
|
|
|
2018-04-23 12:58:43 +00:00
|
|
|
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
|
2018-04-18 09:29:49 +00:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
2015-12-03 20:53:58 +00:00
|
|
|
public function create($actorType, $actorId, $objectType, $objectId) {}
|
|
|
|
|
|
|
|
public function delete($id) {}
|
|
|
|
|
2017-08-30 08:56:02 +00:00
|
|
|
public function save(IComment $comment) {}
|
2015-12-03 20:53:58 +00:00
|
|
|
|
|
|
|
public function deleteReferencesOfActor($actorType, $actorId) {}
|
|
|
|
|
|
|
|
public function deleteCommentsAtObject($objectType, $objectId) {}
|
2016-01-27 17:30:09 +00:00
|
|
|
|
2017-08-30 08:56:02 +00:00
|
|
|
public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {}
|
2016-01-27 17:30:09 +00:00
|
|
|
|
2017-08-30 08:56:02 +00:00
|
|
|
public function getReadMark($objectType, $objectId, IUser $user) {}
|
2016-01-28 21:59:48 +00:00
|
|
|
|
2017-08-30 08:56:02 +00:00
|
|
|
public function deleteReadMarksFromUser(IUser $user) {}
|
2016-01-28 21:59:48 +00:00
|
|
|
|
|
|
|
public function deleteReadMarksOnObject($objectType, $objectId) {}
|
2016-05-09 08:02:07 +00:00
|
|
|
|
|
|
|
public function registerEventHandler(\Closure $closure) {}
|
2016-10-20 12:32:32 +00:00
|
|
|
|
|
|
|
public function registerDisplayNameResolver($type, \Closure $closure) {}
|
|
|
|
|
|
|
|
public function resolveDisplayName($type, $id) {}
|
2017-03-30 08:44:05 +00:00
|
|
|
|
|
|
|
public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {}
|
2017-08-30 08:56:02 +00:00
|
|
|
|
|
|
|
public function getActorsInTree($id) {}
|
2015-12-03 20:53:58 +00:00
|
|
|
}
|