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
|
|
|
|
) {}
|
|
|
|
|
2016-01-27 17:30:09 +00:00
|
|
|
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null) {}
|
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
|
|
|
}
|