2015-12-03 23:53:58 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Test\Comments;
|
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 {
|
2015-12-03 23:53:58 +03: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
|
|
|
|
) {}
|
|
|
|
|
2016-01-27 20:30:09 +03:00
|
|
|
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null) {}
|
2015-12-03 23:53:58 +03:00
|
|
|
|
|
|
|
public function create($actorType, $actorId, $objectType, $objectId) {}
|
|
|
|
|
|
|
|
public function delete($id) {}
|
|
|
|
|
2017-08-30 11:56:02 +03:00
|
|
|
public function save(IComment $comment) {}
|
2015-12-03 23:53:58 +03:00
|
|
|
|
|
|
|
public function deleteReferencesOfActor($actorType, $actorId) {}
|
|
|
|
|
|
|
|
public function deleteCommentsAtObject($objectType, $objectId) {}
|
2016-01-27 20:30:09 +03:00
|
|
|
|
2017-08-30 11:56:02 +03:00
|
|
|
public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {}
|
2016-01-27 20:30:09 +03:00
|
|
|
|
2017-08-30 11:56:02 +03:00
|
|
|
public function getReadMark($objectType, $objectId, IUser $user) {}
|
2016-01-29 00:59:48 +03:00
|
|
|
|
2017-08-30 11:56:02 +03:00
|
|
|
public function deleteReadMarksFromUser(IUser $user) {}
|
2016-01-29 00:59:48 +03:00
|
|
|
|
|
|
|
public function deleteReadMarksOnObject($objectType, $objectId) {}
|
2016-05-09 11:02:07 +03:00
|
|
|
|
|
|
|
public function registerEventHandler(\Closure $closure) {}
|
2016-10-20 15:32:32 +03:00
|
|
|
|
|
|
|
public function registerDisplayNameResolver($type, \Closure $closure) {}
|
|
|
|
|
|
|
|
public function resolveDisplayName($type, $id) {}
|
2017-03-30 11:44:05 +03:00
|
|
|
|
|
|
|
public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {}
|
2017-08-30 11:56:02 +03:00
|
|
|
|
|
|
|
public function getActorsInTree($id) {}
|
2015-12-03 23:53:58 +03:00
|
|
|
}
|