1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<?php
namespace OC\Comments;
use OCP\Comments\IComment;
use OCP\IDBConnection;
use OCP\IUser;
class Manager implements \OCP\Comments\ICommentsManager {
/** @var IDBConnection */
protected $dbConn;
protected function normalizeDatabaseData(array $data): array {
}
public function get($id) {
// TODO: Implement get() method.
}
public function getTree($id, $limit = 0, $offset = 0) {
// TODO: Implement getTree() method.
}
public function getForObject($objectType, $objectId, $limit = 0, $offset = 0, \DateTime $notOlderThan = null) {
// TODO: Implement getForObject() method.
}
public function getForObjectSince(string $objectType, string $objectId, int $lastKnownCommentId, string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false): array {
// TODO: Implement getForObjectSince() method.
}
public function getCommentsWithVerbForObjectSinceComment(string $objectType, string $objectId, array $verbs, int $lastKnownCommentId, string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false): array {
// TODO: Implement getCommentsWithVerbForObjectSinceComment() method.
}
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
// TODO: Implement search() method.
}
public function searchForObjects(string $search, string $objectType, array $objectIds, string $verb, int $offset, int $limit = 50): array {
// TODO: Implement searchForObjects() method.
}
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '') {
// TODO: Implement getNumberOfCommentsForObject() method.
}
public function getNumberOfUnreadCommentsForObjects(string $objectType, array $objectIds, IUser $user, $verb = ''): array {
// TODO: Implement getNumberOfUnreadCommentsForObjects() method.
}
public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int {
// TODO: Implement getNumberOfCommentsForObjectSinceComment() method.
}
public function getNumberOfCommentsWithVerbsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, array $verbs): int {
// TODO: Implement getNumberOfCommentsWithVerbsForObjectSinceComment() method.
}
public function getLastCommentBeforeDate(string $objectType, string $objectId, \DateTime $beforeDate, string $verb = ''): int {
// TODO: Implement getLastCommentBeforeDate() method.
}
public function getLastCommentDateByActor(string $objectType, string $objectId, string $verb, string $actorType, array $actors): array {
// TODO: Implement getLastCommentDateByActor() method.
}
public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {
// TODO: Implement getNumberOfUnreadCommentsForFolder() method.
}
public function create($actorType, $actorId, $objectType, $objectId) {
// TODO: Implement create() method.
}
public function delete($id) {
// TODO: Implement delete() method.
}
public function getReactionComment(int $parentId, string $actorType, string $actorId, string $reaction): IComment {
// TODO: Implement getReactionComment() method.
}
public function retrieveAllReactions(int $parentId): array {
// TODO: Implement retrieveAllReactions() method.
}
public function retrieveAllReactionsWithSpecificReaction(int $parentId, string $reaction): array {
// TODO: Implement retrieveAllReactionsWithSpecificReaction() method.
}
public function supportReactions(): bool {
// TODO: Implement supportReactions() method.
}
public function save(IComment $comment) {
// TODO: Implement save() method.
}
public function deleteReferencesOfActor($actorType, $actorId) {
// TODO: Implement deleteReferencesOfActor() method.
}
public function deleteCommentsAtObject($objectType, $objectId) {
// TODO: Implement deleteCommentsAtObject() method.
}
public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {
// TODO: Implement setReadMark() method.
}
public function getReadMark($objectType, $objectId, IUser $user) {
// TODO: Implement getReadMark() method.
}
public function deleteReadMarksFromUser(IUser $user) {
// TODO: Implement deleteReadMarksFromUser() method.
}
public function deleteReadMarksOnObject($objectType, $objectId) {
// TODO: Implement deleteReadMarksOnObject() method.
}
public function registerEventHandler(\Closure $closure) {
// TODO: Implement registerEventHandler() method.
}
public function registerDisplayNameResolver($type, \Closure $closure) {
// TODO: Implement registerDisplayNameResolver() method.
}
public function resolveDisplayName($type, $id) {
// TODO: Implement resolveDisplayName() method.
}
public function load(): void {
// TODO: Implement load() method.
}
public function deleteCommentsExpiredAtObject(string $objectType, string $objectId = ''): bool {
// TODO: Implement deleteCommentsExpiredAtObject() method.
}
}
|