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