@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
79 | 79 | ->setParameter('type', 'calendar') |
80 | 80 | ->setParameter('calendar_id', $row['calendarid']) |
81 | - ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%'); |
|
81 | + ->setParameter('event_uid', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'"').'%'); |
|
82 | 82 | $deletedEvents += $delete->execute(); |
83 | 83 | } |
84 | 84 | $result->closeCursor(); |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
109 | 109 | ->setParameter('type', 'calendar') |
110 | 110 | ->setParameter('calendar_id', $row['calendarid']) |
111 | - ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%') |
|
112 | - ->setParameter('filtered_name', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '","name":"Busy"') . '%'); |
|
111 | + ->setParameter('event_uid', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'"').'%') |
|
112 | + ->setParameter('filtered_name', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'","name":"Busy"').'%'); |
|
113 | 113 | $deletedEvents += $delete->execute(); |
114 | 114 | } |
115 | 115 | $result->closeCursor(); |
@@ -28,96 +28,96 @@ |
||
28 | 28 | |
29 | 29 | class RemoveClassifiedEventActivity implements IRepairStep { |
30 | 30 | |
31 | - /** @var IDBConnection */ |
|
32 | - private $connection; |
|
33 | - |
|
34 | - public function __construct(IDBConnection $connection) { |
|
35 | - $this->connection = $connection; |
|
36 | - } |
|
37 | - |
|
38 | - /** |
|
39 | - * @inheritdoc |
|
40 | - */ |
|
41 | - public function getName() { |
|
42 | - return 'Remove activity entries of private events'; |
|
43 | - } |
|
44 | - |
|
45 | - /** |
|
46 | - * @inheritdoc |
|
47 | - */ |
|
48 | - public function run(IOutput $output) { |
|
49 | - if (!$this->connection->tableExists('activity')) { |
|
50 | - return; |
|
51 | - } |
|
52 | - |
|
53 | - $deletedEvents = $this->removePrivateEventActivity(); |
|
54 | - $deletedEvents += $this->removeConfidentialUncensoredEventActivity(); |
|
55 | - |
|
56 | - $output->info("Removed $deletedEvents activity entries"); |
|
57 | - } |
|
58 | - |
|
59 | - protected function removePrivateEventActivity() { |
|
60 | - $deletedEvents = 0; |
|
61 | - |
|
62 | - $delete = $this->connection->getQueryBuilder(); |
|
63 | - $delete->delete('activity') |
|
64 | - ->where($delete->expr()->neq('affecteduser', $delete->createParameter('owner'))) |
|
65 | - ->andWhere($delete->expr()->eq('object_type', $delete->createParameter('type'))) |
|
66 | - ->andWhere($delete->expr()->eq('object_id', $delete->createParameter('calendar_id'))) |
|
67 | - ->andWhere($delete->expr()->like('subjectparams', $delete->createParameter('event_uid'))); |
|
68 | - |
|
69 | - $query = $this->connection->getQueryBuilder(); |
|
70 | - $query->select('c.principaluri', 'o.calendarid', 'o.uid') |
|
71 | - ->from('calendarobjects', 'o') |
|
72 | - ->leftJoin('o', 'calendars', 'c', $query->expr()->eq('c.id', 'o.calendarid')) |
|
73 | - ->where($query->expr()->eq('o.classification', $query->createNamedParameter(CalDavBackend::CLASSIFICATION_PRIVATE))); |
|
74 | - $result = $query->execute(); |
|
75 | - |
|
76 | - while ($row = $result->fetch()) { |
|
77 | - $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
|
78 | - ->setParameter('type', 'calendar') |
|
79 | - ->setParameter('calendar_id', $row['calendarid']) |
|
80 | - ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%'); |
|
81 | - $deletedEvents += $delete->execute(); |
|
82 | - } |
|
83 | - $result->closeCursor(); |
|
84 | - |
|
85 | - return $deletedEvents; |
|
86 | - } |
|
87 | - |
|
88 | - protected function removeConfidentialUncensoredEventActivity() { |
|
89 | - $deletedEvents = 0; |
|
90 | - |
|
91 | - $delete = $this->connection->getQueryBuilder(); |
|
92 | - $delete->delete('activity') |
|
93 | - ->where($delete->expr()->neq('affecteduser', $delete->createParameter('owner'))) |
|
94 | - ->andWhere($delete->expr()->eq('object_type', $delete->createParameter('type'))) |
|
95 | - ->andWhere($delete->expr()->eq('object_id', $delete->createParameter('calendar_id'))) |
|
96 | - ->andWhere($delete->expr()->like('subjectparams', $delete->createParameter('event_uid'))) |
|
97 | - ->andWhere($delete->expr()->notLike('subjectparams', $delete->createParameter('filtered_name'))); |
|
98 | - |
|
99 | - $query = $this->connection->getQueryBuilder(); |
|
100 | - $query->select('c.principaluri', 'o.calendarid', 'o.uid') |
|
101 | - ->from('calendarobjects', 'o') |
|
102 | - ->leftJoin('o', 'calendars', 'c', $query->expr()->eq('c.id', 'o.calendarid')) |
|
103 | - ->where($query->expr()->eq('o.classification', $query->createNamedParameter(CalDavBackend::CLASSIFICATION_CONFIDENTIAL))); |
|
104 | - $result = $query->execute(); |
|
105 | - |
|
106 | - while ($row = $result->fetch()) { |
|
107 | - $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
|
108 | - ->setParameter('type', 'calendar') |
|
109 | - ->setParameter('calendar_id', $row['calendarid']) |
|
110 | - ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%') |
|
111 | - ->setParameter('filtered_name', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '","name":"Busy"') . '%'); |
|
112 | - $deletedEvents += $delete->execute(); |
|
113 | - } |
|
114 | - $result->closeCursor(); |
|
115 | - |
|
116 | - return $deletedEvents; |
|
117 | - } |
|
118 | - |
|
119 | - protected function getPrincipal($principalUri) { |
|
120 | - $uri = explode('/', $principalUri); |
|
121 | - return $uri[2]; |
|
122 | - } |
|
31 | + /** @var IDBConnection */ |
|
32 | + private $connection; |
|
33 | + |
|
34 | + public function __construct(IDBConnection $connection) { |
|
35 | + $this->connection = $connection; |
|
36 | + } |
|
37 | + |
|
38 | + /** |
|
39 | + * @inheritdoc |
|
40 | + */ |
|
41 | + public function getName() { |
|
42 | + return 'Remove activity entries of private events'; |
|
43 | + } |
|
44 | + |
|
45 | + /** |
|
46 | + * @inheritdoc |
|
47 | + */ |
|
48 | + public function run(IOutput $output) { |
|
49 | + if (!$this->connection->tableExists('activity')) { |
|
50 | + return; |
|
51 | + } |
|
52 | + |
|
53 | + $deletedEvents = $this->removePrivateEventActivity(); |
|
54 | + $deletedEvents += $this->removeConfidentialUncensoredEventActivity(); |
|
55 | + |
|
56 | + $output->info("Removed $deletedEvents activity entries"); |
|
57 | + } |
|
58 | + |
|
59 | + protected function removePrivateEventActivity() { |
|
60 | + $deletedEvents = 0; |
|
61 | + |
|
62 | + $delete = $this->connection->getQueryBuilder(); |
|
63 | + $delete->delete('activity') |
|
64 | + ->where($delete->expr()->neq('affecteduser', $delete->createParameter('owner'))) |
|
65 | + ->andWhere($delete->expr()->eq('object_type', $delete->createParameter('type'))) |
|
66 | + ->andWhere($delete->expr()->eq('object_id', $delete->createParameter('calendar_id'))) |
|
67 | + ->andWhere($delete->expr()->like('subjectparams', $delete->createParameter('event_uid'))); |
|
68 | + |
|
69 | + $query = $this->connection->getQueryBuilder(); |
|
70 | + $query->select('c.principaluri', 'o.calendarid', 'o.uid') |
|
71 | + ->from('calendarobjects', 'o') |
|
72 | + ->leftJoin('o', 'calendars', 'c', $query->expr()->eq('c.id', 'o.calendarid')) |
|
73 | + ->where($query->expr()->eq('o.classification', $query->createNamedParameter(CalDavBackend::CLASSIFICATION_PRIVATE))); |
|
74 | + $result = $query->execute(); |
|
75 | + |
|
76 | + while ($row = $result->fetch()) { |
|
77 | + $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
|
78 | + ->setParameter('type', 'calendar') |
|
79 | + ->setParameter('calendar_id', $row['calendarid']) |
|
80 | + ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%'); |
|
81 | + $deletedEvents += $delete->execute(); |
|
82 | + } |
|
83 | + $result->closeCursor(); |
|
84 | + |
|
85 | + return $deletedEvents; |
|
86 | + } |
|
87 | + |
|
88 | + protected function removeConfidentialUncensoredEventActivity() { |
|
89 | + $deletedEvents = 0; |
|
90 | + |
|
91 | + $delete = $this->connection->getQueryBuilder(); |
|
92 | + $delete->delete('activity') |
|
93 | + ->where($delete->expr()->neq('affecteduser', $delete->createParameter('owner'))) |
|
94 | + ->andWhere($delete->expr()->eq('object_type', $delete->createParameter('type'))) |
|
95 | + ->andWhere($delete->expr()->eq('object_id', $delete->createParameter('calendar_id'))) |
|
96 | + ->andWhere($delete->expr()->like('subjectparams', $delete->createParameter('event_uid'))) |
|
97 | + ->andWhere($delete->expr()->notLike('subjectparams', $delete->createParameter('filtered_name'))); |
|
98 | + |
|
99 | + $query = $this->connection->getQueryBuilder(); |
|
100 | + $query->select('c.principaluri', 'o.calendarid', 'o.uid') |
|
101 | + ->from('calendarobjects', 'o') |
|
102 | + ->leftJoin('o', 'calendars', 'c', $query->expr()->eq('c.id', 'o.calendarid')) |
|
103 | + ->where($query->expr()->eq('o.classification', $query->createNamedParameter(CalDavBackend::CLASSIFICATION_CONFIDENTIAL))); |
|
104 | + $result = $query->execute(); |
|
105 | + |
|
106 | + while ($row = $result->fetch()) { |
|
107 | + $delete->setParameter('owner', $this->getPrincipal($row['principaluri'])) |
|
108 | + ->setParameter('type', 'calendar') |
|
109 | + ->setParameter('calendar_id', $row['calendarid']) |
|
110 | + ->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%') |
|
111 | + ->setParameter('filtered_name', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '","name":"Busy"') . '%'); |
|
112 | + $deletedEvents += $delete->execute(); |
|
113 | + } |
|
114 | + $result->closeCursor(); |
|
115 | + |
|
116 | + return $deletedEvents; |
|
117 | + } |
|
118 | + |
|
119 | + protected function getPrincipal($principalUri) { |
|
120 | + $uri = explode('/', $principalUri); |
|
121 | + return $uri[2]; |
|
122 | + } |
|
123 | 123 | } |
@@ -43,478 +43,478 @@ |
||
43 | 43 | */ |
44 | 44 | class Backend { |
45 | 45 | |
46 | - /** @var IActivityManager */ |
|
47 | - protected $activityManager; |
|
48 | - |
|
49 | - /** @var IGroupManager */ |
|
50 | - protected $groupManager; |
|
51 | - |
|
52 | - /** @var IUserSession */ |
|
53 | - protected $userSession; |
|
54 | - |
|
55 | - /** |
|
56 | - * @param IActivityManager $activityManager |
|
57 | - * @param IGroupManager $groupManager |
|
58 | - * @param IUserSession $userSession |
|
59 | - */ |
|
60 | - public function __construct(IActivityManager $activityManager, IGroupManager $groupManager, IUserSession $userSession) { |
|
61 | - $this->activityManager = $activityManager; |
|
62 | - $this->groupManager = $groupManager; |
|
63 | - $this->userSession = $userSession; |
|
64 | - } |
|
65 | - |
|
66 | - /** |
|
67 | - * Creates activities when a calendar was creates |
|
68 | - * |
|
69 | - * @param array $calendarData |
|
70 | - */ |
|
71 | - public function onCalendarAdd(array $calendarData) { |
|
72 | - $this->triggerCalendarActivity(Calendar::SUBJECT_ADD, $calendarData); |
|
73 | - } |
|
74 | - |
|
75 | - /** |
|
76 | - * Creates activities when a calendar was updated |
|
77 | - * |
|
78 | - * @param array $calendarData |
|
79 | - * @param array $shares |
|
80 | - * @param array $properties |
|
81 | - */ |
|
82 | - public function onCalendarUpdate(array $calendarData, array $shares, array $properties) { |
|
83 | - $this->triggerCalendarActivity(Calendar::SUBJECT_UPDATE, $calendarData, $shares, $properties); |
|
84 | - } |
|
85 | - |
|
86 | - /** |
|
87 | - * Creates activities when a calendar was deleted |
|
88 | - * |
|
89 | - * @param array $calendarData |
|
90 | - * @param array $shares |
|
91 | - */ |
|
92 | - public function onCalendarDelete(array $calendarData, array $shares) { |
|
93 | - $this->triggerCalendarActivity(Calendar::SUBJECT_DELETE, $calendarData, $shares); |
|
94 | - } |
|
95 | - |
|
96 | - /** |
|
97 | - * Creates activities when a calendar was (un)published |
|
98 | - * |
|
99 | - * @param array $calendarData |
|
100 | - * @param bool $publishStatus |
|
101 | - */ |
|
102 | - public function onCalendarPublication(array $calendarData, $publishStatus) { |
|
103 | - $this->triggerCalendarActivity($publishStatus ? Calendar::SUBJECT_PUBLISH : Calendar::SUBJECT_UNPUBLISH, $calendarData); |
|
104 | - } |
|
105 | - |
|
106 | - /** |
|
107 | - * Creates activities for all related users when a calendar was touched |
|
108 | - * |
|
109 | - * @param string $action |
|
110 | - * @param array $calendarData |
|
111 | - * @param array $shares |
|
112 | - * @param array $changedProperties |
|
113 | - */ |
|
114 | - protected function triggerCalendarActivity($action, array $calendarData, array $shares = [], array $changedProperties = []) { |
|
115 | - if (!isset($calendarData['principaluri'])) { |
|
116 | - return; |
|
117 | - } |
|
118 | - |
|
119 | - $principal = explode('/', $calendarData['principaluri']); |
|
120 | - $owner = array_pop($principal); |
|
121 | - |
|
122 | - $currentUser = $this->userSession->getUser(); |
|
123 | - if ($currentUser instanceof IUser) { |
|
124 | - $currentUser = $currentUser->getUID(); |
|
125 | - } else { |
|
126 | - $currentUser = $owner; |
|
127 | - } |
|
128 | - |
|
129 | - $event = $this->activityManager->generateEvent(); |
|
130 | - $event->setApp('dav') |
|
131 | - ->setObject('calendar', (int) $calendarData['id']) |
|
132 | - ->setType('calendar') |
|
133 | - ->setAuthor($currentUser); |
|
134 | - |
|
135 | - $changedVisibleInformation = array_intersect([ |
|
136 | - '{DAV:}displayname', |
|
137 | - '{http://apple.com/ns/ical/}calendar-color' |
|
138 | - ], array_keys($changedProperties)); |
|
139 | - |
|
140 | - if (empty($shares) || ($action === Calendar::SUBJECT_UPDATE && empty($changedVisibleInformation))) { |
|
141 | - $users = [$owner]; |
|
142 | - } else { |
|
143 | - $users = $this->getUsersForShares($shares); |
|
144 | - $users[] = $owner; |
|
145 | - } |
|
146 | - |
|
147 | - foreach ($users as $user) { |
|
148 | - $event->setAffectedUser($user) |
|
149 | - ->setSubject( |
|
150 | - $user === $currentUser ? $action . '_self' : $action, |
|
151 | - [ |
|
152 | - 'actor' => $currentUser, |
|
153 | - 'calendar' => [ |
|
154 | - 'id' => (int) $calendarData['id'], |
|
155 | - 'uri' => $calendarData['uri'], |
|
156 | - 'name' => $calendarData['{DAV:}displayname'], |
|
157 | - ], |
|
158 | - ] |
|
159 | - ); |
|
160 | - $this->activityManager->publish($event); |
|
161 | - } |
|
162 | - } |
|
163 | - |
|
164 | - /** |
|
165 | - * Creates activities for all related users when a calendar was (un-)shared |
|
166 | - * |
|
167 | - * @param array $calendarData |
|
168 | - * @param array $shares |
|
169 | - * @param array $add |
|
170 | - * @param array $remove |
|
171 | - */ |
|
172 | - public function onCalendarUpdateShares(array $calendarData, array $shares, array $add, array $remove) { |
|
173 | - $principal = explode('/', $calendarData['principaluri']); |
|
174 | - $owner = $principal[2]; |
|
175 | - |
|
176 | - $currentUser = $this->userSession->getUser(); |
|
177 | - if ($currentUser instanceof IUser) { |
|
178 | - $currentUser = $currentUser->getUID(); |
|
179 | - } else { |
|
180 | - $currentUser = $owner; |
|
181 | - } |
|
182 | - |
|
183 | - $event = $this->activityManager->generateEvent(); |
|
184 | - $event->setApp('dav') |
|
185 | - ->setObject('calendar', (int) $calendarData['id']) |
|
186 | - ->setType('calendar') |
|
187 | - ->setAuthor($currentUser); |
|
188 | - |
|
189 | - foreach ($remove as $principal) { |
|
190 | - // principal:principals/users/test |
|
191 | - $parts = explode(':', $principal, 2); |
|
192 | - if ($parts[0] !== 'principal') { |
|
193 | - continue; |
|
194 | - } |
|
195 | - $principal = explode('/', $parts[1]); |
|
196 | - |
|
197 | - if ($principal[1] === 'users') { |
|
198 | - $this->triggerActivityUser( |
|
199 | - $principal[2], |
|
200 | - $event, |
|
201 | - $calendarData, |
|
202 | - Calendar::SUBJECT_UNSHARE_USER, |
|
203 | - Calendar::SUBJECT_DELETE . '_self' |
|
204 | - ); |
|
205 | - |
|
206 | - if ($owner !== $principal[2]) { |
|
207 | - $parameters = [ |
|
208 | - 'actor' => $event->getAuthor(), |
|
209 | - 'calendar' => [ |
|
210 | - 'id' => (int) $calendarData['id'], |
|
211 | - 'uri' => $calendarData['uri'], |
|
212 | - 'name' => $calendarData['{DAV:}displayname'], |
|
213 | - ], |
|
214 | - 'user' => $principal[2], |
|
215 | - ]; |
|
216 | - |
|
217 | - if ($owner === $event->getAuthor()) { |
|
218 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_you'; |
|
219 | - } else if ($principal[2] === $event->getAuthor()) { |
|
220 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_self'; |
|
221 | - } else { |
|
222 | - $event->setAffectedUser($event->getAuthor()) |
|
223 | - ->setSubject(Calendar::SUBJECT_UNSHARE_USER . '_you', $parameters); |
|
224 | - $this->activityManager->publish($event); |
|
225 | - |
|
226 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_by'; |
|
227 | - } |
|
228 | - |
|
229 | - $event->setAffectedUser($owner) |
|
230 | - ->setSubject($subject, $parameters); |
|
231 | - $this->activityManager->publish($event); |
|
232 | - } |
|
233 | - } else if ($principal[1] === 'groups') { |
|
234 | - $this->triggerActivityGroup($principal[2], $event, $calendarData, Calendar::SUBJECT_UNSHARE_USER); |
|
235 | - |
|
236 | - $parameters = [ |
|
237 | - 'actor' => $event->getAuthor(), |
|
238 | - 'calendar' => [ |
|
239 | - 'id' => (int) $calendarData['id'], |
|
240 | - 'uri' => $calendarData['uri'], |
|
241 | - 'name' => $calendarData['{DAV:}displayname'], |
|
242 | - ], |
|
243 | - 'group' => $principal[2], |
|
244 | - ]; |
|
245 | - |
|
246 | - if ($owner === $event->getAuthor()) { |
|
247 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_you'; |
|
248 | - } else { |
|
249 | - $event->setAffectedUser($event->getAuthor()) |
|
250 | - ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP . '_you', $parameters); |
|
251 | - $this->activityManager->publish($event); |
|
252 | - |
|
253 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_by'; |
|
254 | - } |
|
255 | - |
|
256 | - $event->setAffectedUser($owner) |
|
257 | - ->setSubject($subject, $parameters); |
|
258 | - $this->activityManager->publish($event); |
|
259 | - } |
|
260 | - } |
|
261 | - |
|
262 | - foreach ($add as $share) { |
|
263 | - if ($this->isAlreadyShared($share['href'], $shares)) { |
|
264 | - continue; |
|
265 | - } |
|
266 | - |
|
267 | - // principal:principals/users/test |
|
268 | - $parts = explode(':', $share['href'], 2); |
|
269 | - if ($parts[0] !== 'principal') { |
|
270 | - continue; |
|
271 | - } |
|
272 | - $principal = explode('/', $parts[1]); |
|
273 | - |
|
274 | - if ($principal[1] === 'users') { |
|
275 | - $this->triggerActivityUser($principal[2], $event, $calendarData, Calendar::SUBJECT_SHARE_USER); |
|
276 | - |
|
277 | - if ($owner !== $principal[2]) { |
|
278 | - $parameters = [ |
|
279 | - 'actor' => $event->getAuthor(), |
|
280 | - 'calendar' => [ |
|
281 | - 'id' => (int) $calendarData['id'], |
|
282 | - 'uri' => $calendarData['uri'], |
|
283 | - 'name' => $calendarData['{DAV:}displayname'], |
|
284 | - ], |
|
285 | - 'user' => $principal[2], |
|
286 | - ]; |
|
287 | - |
|
288 | - if ($owner === $event->getAuthor()) { |
|
289 | - $subject = Calendar::SUBJECT_SHARE_USER . '_you'; |
|
290 | - } else { |
|
291 | - $event->setAffectedUser($event->getAuthor()) |
|
292 | - ->setSubject(Calendar::SUBJECT_SHARE_USER . '_you', $parameters); |
|
293 | - $this->activityManager->publish($event); |
|
294 | - |
|
295 | - $subject = Calendar::SUBJECT_SHARE_USER . '_by'; |
|
296 | - } |
|
297 | - |
|
298 | - $event->setAffectedUser($owner) |
|
299 | - ->setSubject($subject, $parameters); |
|
300 | - $this->activityManager->publish($event); |
|
301 | - } |
|
302 | - } else if ($principal[1] === 'groups') { |
|
303 | - $this->triggerActivityGroup($principal[2], $event, $calendarData, Calendar::SUBJECT_SHARE_USER); |
|
304 | - |
|
305 | - $parameters = [ |
|
306 | - 'actor' => $event->getAuthor(), |
|
307 | - 'calendar' => [ |
|
308 | - 'id' => (int) $calendarData['id'], |
|
309 | - 'uri' => $calendarData['uri'], |
|
310 | - 'name' => $calendarData['{DAV:}displayname'], |
|
311 | - ], |
|
312 | - 'group' => $principal[2], |
|
313 | - ]; |
|
314 | - |
|
315 | - if ($owner === $event->getAuthor()) { |
|
316 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_you'; |
|
317 | - } else { |
|
318 | - $event->setAffectedUser($event->getAuthor()) |
|
319 | - ->setSubject(Calendar::SUBJECT_SHARE_GROUP . '_you', $parameters); |
|
320 | - $this->activityManager->publish($event); |
|
321 | - |
|
322 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_by'; |
|
323 | - } |
|
324 | - |
|
325 | - $event->setAffectedUser($owner) |
|
326 | - ->setSubject($subject, $parameters); |
|
327 | - $this->activityManager->publish($event); |
|
328 | - } |
|
329 | - } |
|
330 | - } |
|
331 | - |
|
332 | - /** |
|
333 | - * Checks if a calendar is already shared with a principal |
|
334 | - * |
|
335 | - * @param string $principal |
|
336 | - * @param array[] $shares |
|
337 | - * @return bool |
|
338 | - */ |
|
339 | - protected function isAlreadyShared($principal, $shares) { |
|
340 | - foreach ($shares as $share) { |
|
341 | - if ($principal === $share['href']) { |
|
342 | - return true; |
|
343 | - } |
|
344 | - } |
|
345 | - |
|
346 | - return false; |
|
347 | - } |
|
348 | - |
|
349 | - /** |
|
350 | - * Creates the given activity for all members of the given group |
|
351 | - * |
|
352 | - * @param string $gid |
|
353 | - * @param IEvent $event |
|
354 | - * @param array $properties |
|
355 | - * @param string $subject |
|
356 | - */ |
|
357 | - protected function triggerActivityGroup($gid, IEvent $event, array $properties, $subject) { |
|
358 | - $group = $this->groupManager->get($gid); |
|
359 | - |
|
360 | - if ($group instanceof IGroup) { |
|
361 | - foreach ($group->getUsers() as $user) { |
|
362 | - // Exclude current user |
|
363 | - if ($user->getUID() !== $event->getAuthor()) { |
|
364 | - $this->triggerActivityUser($user->getUID(), $event, $properties, $subject); |
|
365 | - } |
|
366 | - } |
|
367 | - } |
|
368 | - } |
|
369 | - |
|
370 | - /** |
|
371 | - * Creates the given activity for the given user |
|
372 | - * |
|
373 | - * @param string $user |
|
374 | - * @param IEvent $event |
|
375 | - * @param array $properties |
|
376 | - * @param string $subject |
|
377 | - * @param string $subjectSelf |
|
378 | - */ |
|
379 | - protected function triggerActivityUser($user, IEvent $event, array $properties, $subject, $subjectSelf = '') { |
|
380 | - $event->setAffectedUser($user) |
|
381 | - ->setSubject( |
|
382 | - $user === $event->getAuthor() && $subjectSelf ? $subjectSelf : $subject, |
|
383 | - [ |
|
384 | - 'actor' => $event->getAuthor(), |
|
385 | - 'calendar' => [ |
|
386 | - 'id' => (int) $properties['id'], |
|
387 | - 'uri' => $properties['uri'], |
|
388 | - 'name' => $properties['{DAV:}displayname'], |
|
389 | - ], |
|
390 | - ] |
|
391 | - ); |
|
392 | - |
|
393 | - $this->activityManager->publish($event); |
|
394 | - } |
|
395 | - |
|
396 | - /** |
|
397 | - * Creates activities when a calendar object was created/updated/deleted |
|
398 | - * |
|
399 | - * @param string $action |
|
400 | - * @param array $calendarData |
|
401 | - * @param array $shares |
|
402 | - * @param array $objectData |
|
403 | - */ |
|
404 | - public function onTouchCalendarObject($action, array $calendarData, array $shares, array $objectData) { |
|
405 | - if (!isset($calendarData['principaluri'])) { |
|
406 | - return; |
|
407 | - } |
|
408 | - |
|
409 | - $principal = explode('/', $calendarData['principaluri']); |
|
410 | - $owner = array_pop($principal); |
|
411 | - |
|
412 | - $currentUser = $this->userSession->getUser(); |
|
413 | - if ($currentUser instanceof IUser) { |
|
414 | - $currentUser = $currentUser->getUID(); |
|
415 | - } else { |
|
416 | - $currentUser = $owner; |
|
417 | - } |
|
418 | - |
|
419 | - $classification = isset($objectData['classification']) ? $objectData['classification'] : CalDavBackend::CLASSIFICATION_PUBLIC; |
|
420 | - $object = $this->getObjectNameAndType($objectData); |
|
421 | - $action = $action . '_' . $object['type']; |
|
422 | - |
|
423 | - if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'COMPLETED') { |
|
424 | - $action .= '_completed'; |
|
425 | - } else if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'NEEDS-ACTION') { |
|
426 | - $action .= '_needs_action'; |
|
427 | - } |
|
428 | - |
|
429 | - $event = $this->activityManager->generateEvent(); |
|
430 | - $event->setApp('dav') |
|
431 | - ->setObject('calendar', (int) $calendarData['id']) |
|
432 | - ->setType($object['type'] === 'event' ? 'calendar_event' : 'calendar_todo') |
|
433 | - ->setAuthor($currentUser); |
|
434 | - |
|
435 | - $users = $this->getUsersForShares($shares); |
|
436 | - $users[] = $owner; |
|
437 | - |
|
438 | - foreach ($users as $user) { |
|
439 | - if ($classification === CalDavBackend::CLASSIFICATION_PRIVATE && $user !== $owner) { |
|
440 | - // Private events are only shown to the owner |
|
441 | - continue; |
|
442 | - } |
|
443 | - |
|
444 | - $event->setAffectedUser($user) |
|
445 | - ->setSubject( |
|
446 | - $user === $currentUser ? $action . '_self' : $action, |
|
447 | - [ |
|
448 | - 'actor' => $event->getAuthor(), |
|
449 | - 'calendar' => [ |
|
450 | - 'id' => (int) $calendarData['id'], |
|
451 | - 'uri' => $calendarData['uri'], |
|
452 | - 'name' => $calendarData['{DAV:}displayname'], |
|
453 | - ], |
|
454 | - 'object' => [ |
|
455 | - 'id' => $object['id'], |
|
456 | - 'name' => $classification === CalDavBackend::CLASSIFICATION_CONFIDENTIAL && $user !== $owner ? 'Busy' : $object['name'], |
|
457 | - 'classified' => $classification === CalDavBackend::CLASSIFICATION_CONFIDENTIAL && $user !== $owner, |
|
458 | - ], |
|
459 | - ] |
|
460 | - ); |
|
461 | - $this->activityManager->publish($event); |
|
462 | - } |
|
463 | - } |
|
464 | - |
|
465 | - /** |
|
466 | - * @param array $objectData |
|
467 | - * @return string[]|bool |
|
468 | - */ |
|
469 | - protected function getObjectNameAndType(array $objectData) { |
|
470 | - $vObject = Reader::read($objectData['calendardata']); |
|
471 | - $component = $componentType = null; |
|
472 | - foreach($vObject->getComponents() as $component) { |
|
473 | - if (in_array($component->name, ['VEVENT', 'VTODO'])) { |
|
474 | - $componentType = $component->name; |
|
475 | - break; |
|
476 | - } |
|
477 | - } |
|
478 | - |
|
479 | - if (!$componentType) { |
|
480 | - // Calendar objects must have a VEVENT or VTODO component |
|
481 | - return false; |
|
482 | - } |
|
483 | - |
|
484 | - if ($componentType === 'VEVENT') { |
|
485 | - return ['id' => (string) $component->UID, 'name' => (string) $component->SUMMARY, 'type' => 'event']; |
|
486 | - } |
|
487 | - return ['id' => (string) $component->UID, 'name' => (string) $component->SUMMARY, 'type' => 'todo', 'status' => (string) $component->STATUS]; |
|
488 | - } |
|
489 | - |
|
490 | - /** |
|
491 | - * Get all users that have access to a given calendar |
|
492 | - * |
|
493 | - * @param array $shares |
|
494 | - * @return string[] |
|
495 | - */ |
|
496 | - protected function getUsersForShares(array $shares) { |
|
497 | - $users = $groups = []; |
|
498 | - foreach ($shares as $share) { |
|
499 | - $prinical = explode('/', $share['{http://owncloud.org/ns}principal']); |
|
500 | - if ($prinical[1] === 'users') { |
|
501 | - $users[] = $prinical[2]; |
|
502 | - } else if ($prinical[1] === 'groups') { |
|
503 | - $groups[] = $prinical[2]; |
|
504 | - } |
|
505 | - } |
|
506 | - |
|
507 | - if (!empty($groups)) { |
|
508 | - foreach ($groups as $gid) { |
|
509 | - $group = $this->groupManager->get($gid); |
|
510 | - if ($group instanceof IGroup) { |
|
511 | - foreach ($group->getUsers() as $user) { |
|
512 | - $users[] = $user->getUID(); |
|
513 | - } |
|
514 | - } |
|
515 | - } |
|
516 | - } |
|
517 | - |
|
518 | - return array_unique($users); |
|
519 | - } |
|
46 | + /** @var IActivityManager */ |
|
47 | + protected $activityManager; |
|
48 | + |
|
49 | + /** @var IGroupManager */ |
|
50 | + protected $groupManager; |
|
51 | + |
|
52 | + /** @var IUserSession */ |
|
53 | + protected $userSession; |
|
54 | + |
|
55 | + /** |
|
56 | + * @param IActivityManager $activityManager |
|
57 | + * @param IGroupManager $groupManager |
|
58 | + * @param IUserSession $userSession |
|
59 | + */ |
|
60 | + public function __construct(IActivityManager $activityManager, IGroupManager $groupManager, IUserSession $userSession) { |
|
61 | + $this->activityManager = $activityManager; |
|
62 | + $this->groupManager = $groupManager; |
|
63 | + $this->userSession = $userSession; |
|
64 | + } |
|
65 | + |
|
66 | + /** |
|
67 | + * Creates activities when a calendar was creates |
|
68 | + * |
|
69 | + * @param array $calendarData |
|
70 | + */ |
|
71 | + public function onCalendarAdd(array $calendarData) { |
|
72 | + $this->triggerCalendarActivity(Calendar::SUBJECT_ADD, $calendarData); |
|
73 | + } |
|
74 | + |
|
75 | + /** |
|
76 | + * Creates activities when a calendar was updated |
|
77 | + * |
|
78 | + * @param array $calendarData |
|
79 | + * @param array $shares |
|
80 | + * @param array $properties |
|
81 | + */ |
|
82 | + public function onCalendarUpdate(array $calendarData, array $shares, array $properties) { |
|
83 | + $this->triggerCalendarActivity(Calendar::SUBJECT_UPDATE, $calendarData, $shares, $properties); |
|
84 | + } |
|
85 | + |
|
86 | + /** |
|
87 | + * Creates activities when a calendar was deleted |
|
88 | + * |
|
89 | + * @param array $calendarData |
|
90 | + * @param array $shares |
|
91 | + */ |
|
92 | + public function onCalendarDelete(array $calendarData, array $shares) { |
|
93 | + $this->triggerCalendarActivity(Calendar::SUBJECT_DELETE, $calendarData, $shares); |
|
94 | + } |
|
95 | + |
|
96 | + /** |
|
97 | + * Creates activities when a calendar was (un)published |
|
98 | + * |
|
99 | + * @param array $calendarData |
|
100 | + * @param bool $publishStatus |
|
101 | + */ |
|
102 | + public function onCalendarPublication(array $calendarData, $publishStatus) { |
|
103 | + $this->triggerCalendarActivity($publishStatus ? Calendar::SUBJECT_PUBLISH : Calendar::SUBJECT_UNPUBLISH, $calendarData); |
|
104 | + } |
|
105 | + |
|
106 | + /** |
|
107 | + * Creates activities for all related users when a calendar was touched |
|
108 | + * |
|
109 | + * @param string $action |
|
110 | + * @param array $calendarData |
|
111 | + * @param array $shares |
|
112 | + * @param array $changedProperties |
|
113 | + */ |
|
114 | + protected function triggerCalendarActivity($action, array $calendarData, array $shares = [], array $changedProperties = []) { |
|
115 | + if (!isset($calendarData['principaluri'])) { |
|
116 | + return; |
|
117 | + } |
|
118 | + |
|
119 | + $principal = explode('/', $calendarData['principaluri']); |
|
120 | + $owner = array_pop($principal); |
|
121 | + |
|
122 | + $currentUser = $this->userSession->getUser(); |
|
123 | + if ($currentUser instanceof IUser) { |
|
124 | + $currentUser = $currentUser->getUID(); |
|
125 | + } else { |
|
126 | + $currentUser = $owner; |
|
127 | + } |
|
128 | + |
|
129 | + $event = $this->activityManager->generateEvent(); |
|
130 | + $event->setApp('dav') |
|
131 | + ->setObject('calendar', (int) $calendarData['id']) |
|
132 | + ->setType('calendar') |
|
133 | + ->setAuthor($currentUser); |
|
134 | + |
|
135 | + $changedVisibleInformation = array_intersect([ |
|
136 | + '{DAV:}displayname', |
|
137 | + '{http://apple.com/ns/ical/}calendar-color' |
|
138 | + ], array_keys($changedProperties)); |
|
139 | + |
|
140 | + if (empty($shares) || ($action === Calendar::SUBJECT_UPDATE && empty($changedVisibleInformation))) { |
|
141 | + $users = [$owner]; |
|
142 | + } else { |
|
143 | + $users = $this->getUsersForShares($shares); |
|
144 | + $users[] = $owner; |
|
145 | + } |
|
146 | + |
|
147 | + foreach ($users as $user) { |
|
148 | + $event->setAffectedUser($user) |
|
149 | + ->setSubject( |
|
150 | + $user === $currentUser ? $action . '_self' : $action, |
|
151 | + [ |
|
152 | + 'actor' => $currentUser, |
|
153 | + 'calendar' => [ |
|
154 | + 'id' => (int) $calendarData['id'], |
|
155 | + 'uri' => $calendarData['uri'], |
|
156 | + 'name' => $calendarData['{DAV:}displayname'], |
|
157 | + ], |
|
158 | + ] |
|
159 | + ); |
|
160 | + $this->activityManager->publish($event); |
|
161 | + } |
|
162 | + } |
|
163 | + |
|
164 | + /** |
|
165 | + * Creates activities for all related users when a calendar was (un-)shared |
|
166 | + * |
|
167 | + * @param array $calendarData |
|
168 | + * @param array $shares |
|
169 | + * @param array $add |
|
170 | + * @param array $remove |
|
171 | + */ |
|
172 | + public function onCalendarUpdateShares(array $calendarData, array $shares, array $add, array $remove) { |
|
173 | + $principal = explode('/', $calendarData['principaluri']); |
|
174 | + $owner = $principal[2]; |
|
175 | + |
|
176 | + $currentUser = $this->userSession->getUser(); |
|
177 | + if ($currentUser instanceof IUser) { |
|
178 | + $currentUser = $currentUser->getUID(); |
|
179 | + } else { |
|
180 | + $currentUser = $owner; |
|
181 | + } |
|
182 | + |
|
183 | + $event = $this->activityManager->generateEvent(); |
|
184 | + $event->setApp('dav') |
|
185 | + ->setObject('calendar', (int) $calendarData['id']) |
|
186 | + ->setType('calendar') |
|
187 | + ->setAuthor($currentUser); |
|
188 | + |
|
189 | + foreach ($remove as $principal) { |
|
190 | + // principal:principals/users/test |
|
191 | + $parts = explode(':', $principal, 2); |
|
192 | + if ($parts[0] !== 'principal') { |
|
193 | + continue; |
|
194 | + } |
|
195 | + $principal = explode('/', $parts[1]); |
|
196 | + |
|
197 | + if ($principal[1] === 'users') { |
|
198 | + $this->triggerActivityUser( |
|
199 | + $principal[2], |
|
200 | + $event, |
|
201 | + $calendarData, |
|
202 | + Calendar::SUBJECT_UNSHARE_USER, |
|
203 | + Calendar::SUBJECT_DELETE . '_self' |
|
204 | + ); |
|
205 | + |
|
206 | + if ($owner !== $principal[2]) { |
|
207 | + $parameters = [ |
|
208 | + 'actor' => $event->getAuthor(), |
|
209 | + 'calendar' => [ |
|
210 | + 'id' => (int) $calendarData['id'], |
|
211 | + 'uri' => $calendarData['uri'], |
|
212 | + 'name' => $calendarData['{DAV:}displayname'], |
|
213 | + ], |
|
214 | + 'user' => $principal[2], |
|
215 | + ]; |
|
216 | + |
|
217 | + if ($owner === $event->getAuthor()) { |
|
218 | + $subject = Calendar::SUBJECT_UNSHARE_USER . '_you'; |
|
219 | + } else if ($principal[2] === $event->getAuthor()) { |
|
220 | + $subject = Calendar::SUBJECT_UNSHARE_USER . '_self'; |
|
221 | + } else { |
|
222 | + $event->setAffectedUser($event->getAuthor()) |
|
223 | + ->setSubject(Calendar::SUBJECT_UNSHARE_USER . '_you', $parameters); |
|
224 | + $this->activityManager->publish($event); |
|
225 | + |
|
226 | + $subject = Calendar::SUBJECT_UNSHARE_USER . '_by'; |
|
227 | + } |
|
228 | + |
|
229 | + $event->setAffectedUser($owner) |
|
230 | + ->setSubject($subject, $parameters); |
|
231 | + $this->activityManager->publish($event); |
|
232 | + } |
|
233 | + } else if ($principal[1] === 'groups') { |
|
234 | + $this->triggerActivityGroup($principal[2], $event, $calendarData, Calendar::SUBJECT_UNSHARE_USER); |
|
235 | + |
|
236 | + $parameters = [ |
|
237 | + 'actor' => $event->getAuthor(), |
|
238 | + 'calendar' => [ |
|
239 | + 'id' => (int) $calendarData['id'], |
|
240 | + 'uri' => $calendarData['uri'], |
|
241 | + 'name' => $calendarData['{DAV:}displayname'], |
|
242 | + ], |
|
243 | + 'group' => $principal[2], |
|
244 | + ]; |
|
245 | + |
|
246 | + if ($owner === $event->getAuthor()) { |
|
247 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_you'; |
|
248 | + } else { |
|
249 | + $event->setAffectedUser($event->getAuthor()) |
|
250 | + ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP . '_you', $parameters); |
|
251 | + $this->activityManager->publish($event); |
|
252 | + |
|
253 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_by'; |
|
254 | + } |
|
255 | + |
|
256 | + $event->setAffectedUser($owner) |
|
257 | + ->setSubject($subject, $parameters); |
|
258 | + $this->activityManager->publish($event); |
|
259 | + } |
|
260 | + } |
|
261 | + |
|
262 | + foreach ($add as $share) { |
|
263 | + if ($this->isAlreadyShared($share['href'], $shares)) { |
|
264 | + continue; |
|
265 | + } |
|
266 | + |
|
267 | + // principal:principals/users/test |
|
268 | + $parts = explode(':', $share['href'], 2); |
|
269 | + if ($parts[0] !== 'principal') { |
|
270 | + continue; |
|
271 | + } |
|
272 | + $principal = explode('/', $parts[1]); |
|
273 | + |
|
274 | + if ($principal[1] === 'users') { |
|
275 | + $this->triggerActivityUser($principal[2], $event, $calendarData, Calendar::SUBJECT_SHARE_USER); |
|
276 | + |
|
277 | + if ($owner !== $principal[2]) { |
|
278 | + $parameters = [ |
|
279 | + 'actor' => $event->getAuthor(), |
|
280 | + 'calendar' => [ |
|
281 | + 'id' => (int) $calendarData['id'], |
|
282 | + 'uri' => $calendarData['uri'], |
|
283 | + 'name' => $calendarData['{DAV:}displayname'], |
|
284 | + ], |
|
285 | + 'user' => $principal[2], |
|
286 | + ]; |
|
287 | + |
|
288 | + if ($owner === $event->getAuthor()) { |
|
289 | + $subject = Calendar::SUBJECT_SHARE_USER . '_you'; |
|
290 | + } else { |
|
291 | + $event->setAffectedUser($event->getAuthor()) |
|
292 | + ->setSubject(Calendar::SUBJECT_SHARE_USER . '_you', $parameters); |
|
293 | + $this->activityManager->publish($event); |
|
294 | + |
|
295 | + $subject = Calendar::SUBJECT_SHARE_USER . '_by'; |
|
296 | + } |
|
297 | + |
|
298 | + $event->setAffectedUser($owner) |
|
299 | + ->setSubject($subject, $parameters); |
|
300 | + $this->activityManager->publish($event); |
|
301 | + } |
|
302 | + } else if ($principal[1] === 'groups') { |
|
303 | + $this->triggerActivityGroup($principal[2], $event, $calendarData, Calendar::SUBJECT_SHARE_USER); |
|
304 | + |
|
305 | + $parameters = [ |
|
306 | + 'actor' => $event->getAuthor(), |
|
307 | + 'calendar' => [ |
|
308 | + 'id' => (int) $calendarData['id'], |
|
309 | + 'uri' => $calendarData['uri'], |
|
310 | + 'name' => $calendarData['{DAV:}displayname'], |
|
311 | + ], |
|
312 | + 'group' => $principal[2], |
|
313 | + ]; |
|
314 | + |
|
315 | + if ($owner === $event->getAuthor()) { |
|
316 | + $subject = Calendar::SUBJECT_SHARE_GROUP . '_you'; |
|
317 | + } else { |
|
318 | + $event->setAffectedUser($event->getAuthor()) |
|
319 | + ->setSubject(Calendar::SUBJECT_SHARE_GROUP . '_you', $parameters); |
|
320 | + $this->activityManager->publish($event); |
|
321 | + |
|
322 | + $subject = Calendar::SUBJECT_SHARE_GROUP . '_by'; |
|
323 | + } |
|
324 | + |
|
325 | + $event->setAffectedUser($owner) |
|
326 | + ->setSubject($subject, $parameters); |
|
327 | + $this->activityManager->publish($event); |
|
328 | + } |
|
329 | + } |
|
330 | + } |
|
331 | + |
|
332 | + /** |
|
333 | + * Checks if a calendar is already shared with a principal |
|
334 | + * |
|
335 | + * @param string $principal |
|
336 | + * @param array[] $shares |
|
337 | + * @return bool |
|
338 | + */ |
|
339 | + protected function isAlreadyShared($principal, $shares) { |
|
340 | + foreach ($shares as $share) { |
|
341 | + if ($principal === $share['href']) { |
|
342 | + return true; |
|
343 | + } |
|
344 | + } |
|
345 | + |
|
346 | + return false; |
|
347 | + } |
|
348 | + |
|
349 | + /** |
|
350 | + * Creates the given activity for all members of the given group |
|
351 | + * |
|
352 | + * @param string $gid |
|
353 | + * @param IEvent $event |
|
354 | + * @param array $properties |
|
355 | + * @param string $subject |
|
356 | + */ |
|
357 | + protected function triggerActivityGroup($gid, IEvent $event, array $properties, $subject) { |
|
358 | + $group = $this->groupManager->get($gid); |
|
359 | + |
|
360 | + if ($group instanceof IGroup) { |
|
361 | + foreach ($group->getUsers() as $user) { |
|
362 | + // Exclude current user |
|
363 | + if ($user->getUID() !== $event->getAuthor()) { |
|
364 | + $this->triggerActivityUser($user->getUID(), $event, $properties, $subject); |
|
365 | + } |
|
366 | + } |
|
367 | + } |
|
368 | + } |
|
369 | + |
|
370 | + /** |
|
371 | + * Creates the given activity for the given user |
|
372 | + * |
|
373 | + * @param string $user |
|
374 | + * @param IEvent $event |
|
375 | + * @param array $properties |
|
376 | + * @param string $subject |
|
377 | + * @param string $subjectSelf |
|
378 | + */ |
|
379 | + protected function triggerActivityUser($user, IEvent $event, array $properties, $subject, $subjectSelf = '') { |
|
380 | + $event->setAffectedUser($user) |
|
381 | + ->setSubject( |
|
382 | + $user === $event->getAuthor() && $subjectSelf ? $subjectSelf : $subject, |
|
383 | + [ |
|
384 | + 'actor' => $event->getAuthor(), |
|
385 | + 'calendar' => [ |
|
386 | + 'id' => (int) $properties['id'], |
|
387 | + 'uri' => $properties['uri'], |
|
388 | + 'name' => $properties['{DAV:}displayname'], |
|
389 | + ], |
|
390 | + ] |
|
391 | + ); |
|
392 | + |
|
393 | + $this->activityManager->publish($event); |
|
394 | + } |
|
395 | + |
|
396 | + /** |
|
397 | + * Creates activities when a calendar object was created/updated/deleted |
|
398 | + * |
|
399 | + * @param string $action |
|
400 | + * @param array $calendarData |
|
401 | + * @param array $shares |
|
402 | + * @param array $objectData |
|
403 | + */ |
|
404 | + public function onTouchCalendarObject($action, array $calendarData, array $shares, array $objectData) { |
|
405 | + if (!isset($calendarData['principaluri'])) { |
|
406 | + return; |
|
407 | + } |
|
408 | + |
|
409 | + $principal = explode('/', $calendarData['principaluri']); |
|
410 | + $owner = array_pop($principal); |
|
411 | + |
|
412 | + $currentUser = $this->userSession->getUser(); |
|
413 | + if ($currentUser instanceof IUser) { |
|
414 | + $currentUser = $currentUser->getUID(); |
|
415 | + } else { |
|
416 | + $currentUser = $owner; |
|
417 | + } |
|
418 | + |
|
419 | + $classification = isset($objectData['classification']) ? $objectData['classification'] : CalDavBackend::CLASSIFICATION_PUBLIC; |
|
420 | + $object = $this->getObjectNameAndType($objectData); |
|
421 | + $action = $action . '_' . $object['type']; |
|
422 | + |
|
423 | + if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'COMPLETED') { |
|
424 | + $action .= '_completed'; |
|
425 | + } else if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'NEEDS-ACTION') { |
|
426 | + $action .= '_needs_action'; |
|
427 | + } |
|
428 | + |
|
429 | + $event = $this->activityManager->generateEvent(); |
|
430 | + $event->setApp('dav') |
|
431 | + ->setObject('calendar', (int) $calendarData['id']) |
|
432 | + ->setType($object['type'] === 'event' ? 'calendar_event' : 'calendar_todo') |
|
433 | + ->setAuthor($currentUser); |
|
434 | + |
|
435 | + $users = $this->getUsersForShares($shares); |
|
436 | + $users[] = $owner; |
|
437 | + |
|
438 | + foreach ($users as $user) { |
|
439 | + if ($classification === CalDavBackend::CLASSIFICATION_PRIVATE && $user !== $owner) { |
|
440 | + // Private events are only shown to the owner |
|
441 | + continue; |
|
442 | + } |
|
443 | + |
|
444 | + $event->setAffectedUser($user) |
|
445 | + ->setSubject( |
|
446 | + $user === $currentUser ? $action . '_self' : $action, |
|
447 | + [ |
|
448 | + 'actor' => $event->getAuthor(), |
|
449 | + 'calendar' => [ |
|
450 | + 'id' => (int) $calendarData['id'], |
|
451 | + 'uri' => $calendarData['uri'], |
|
452 | + 'name' => $calendarData['{DAV:}displayname'], |
|
453 | + ], |
|
454 | + 'object' => [ |
|
455 | + 'id' => $object['id'], |
|
456 | + 'name' => $classification === CalDavBackend::CLASSIFICATION_CONFIDENTIAL && $user !== $owner ? 'Busy' : $object['name'], |
|
457 | + 'classified' => $classification === CalDavBackend::CLASSIFICATION_CONFIDENTIAL && $user !== $owner, |
|
458 | + ], |
|
459 | + ] |
|
460 | + ); |
|
461 | + $this->activityManager->publish($event); |
|
462 | + } |
|
463 | + } |
|
464 | + |
|
465 | + /** |
|
466 | + * @param array $objectData |
|
467 | + * @return string[]|bool |
|
468 | + */ |
|
469 | + protected function getObjectNameAndType(array $objectData) { |
|
470 | + $vObject = Reader::read($objectData['calendardata']); |
|
471 | + $component = $componentType = null; |
|
472 | + foreach($vObject->getComponents() as $component) { |
|
473 | + if (in_array($component->name, ['VEVENT', 'VTODO'])) { |
|
474 | + $componentType = $component->name; |
|
475 | + break; |
|
476 | + } |
|
477 | + } |
|
478 | + |
|
479 | + if (!$componentType) { |
|
480 | + // Calendar objects must have a VEVENT or VTODO component |
|
481 | + return false; |
|
482 | + } |
|
483 | + |
|
484 | + if ($componentType === 'VEVENT') { |
|
485 | + return ['id' => (string) $component->UID, 'name' => (string) $component->SUMMARY, 'type' => 'event']; |
|
486 | + } |
|
487 | + return ['id' => (string) $component->UID, 'name' => (string) $component->SUMMARY, 'type' => 'todo', 'status' => (string) $component->STATUS]; |
|
488 | + } |
|
489 | + |
|
490 | + /** |
|
491 | + * Get all users that have access to a given calendar |
|
492 | + * |
|
493 | + * @param array $shares |
|
494 | + * @return string[] |
|
495 | + */ |
|
496 | + protected function getUsersForShares(array $shares) { |
|
497 | + $users = $groups = []; |
|
498 | + foreach ($shares as $share) { |
|
499 | + $prinical = explode('/', $share['{http://owncloud.org/ns}principal']); |
|
500 | + if ($prinical[1] === 'users') { |
|
501 | + $users[] = $prinical[2]; |
|
502 | + } else if ($prinical[1] === 'groups') { |
|
503 | + $groups[] = $prinical[2]; |
|
504 | + } |
|
505 | + } |
|
506 | + |
|
507 | + if (!empty($groups)) { |
|
508 | + foreach ($groups as $gid) { |
|
509 | + $group = $this->groupManager->get($gid); |
|
510 | + if ($group instanceof IGroup) { |
|
511 | + foreach ($group->getUsers() as $user) { |
|
512 | + $users[] = $user->getUID(); |
|
513 | + } |
|
514 | + } |
|
515 | + } |
|
516 | + } |
|
517 | + |
|
518 | + return array_unique($users); |
|
519 | + } |
|
520 | 520 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | foreach ($users as $user) { |
148 | 148 | $event->setAffectedUser($user) |
149 | 149 | ->setSubject( |
150 | - $user === $currentUser ? $action . '_self' : $action, |
|
150 | + $user === $currentUser ? $action.'_self' : $action, |
|
151 | 151 | [ |
152 | 152 | 'actor' => $currentUser, |
153 | 153 | 'calendar' => [ |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | $event, |
201 | 201 | $calendarData, |
202 | 202 | Calendar::SUBJECT_UNSHARE_USER, |
203 | - Calendar::SUBJECT_DELETE . '_self' |
|
203 | + Calendar::SUBJECT_DELETE.'_self' |
|
204 | 204 | ); |
205 | 205 | |
206 | 206 | if ($owner !== $principal[2]) { |
@@ -215,15 +215,15 @@ discard block |
||
215 | 215 | ]; |
216 | 216 | |
217 | 217 | if ($owner === $event->getAuthor()) { |
218 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_you'; |
|
218 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_you'; |
|
219 | 219 | } else if ($principal[2] === $event->getAuthor()) { |
220 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_self'; |
|
220 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_self'; |
|
221 | 221 | } else { |
222 | 222 | $event->setAffectedUser($event->getAuthor()) |
223 | - ->setSubject(Calendar::SUBJECT_UNSHARE_USER . '_you', $parameters); |
|
223 | + ->setSubject(Calendar::SUBJECT_UNSHARE_USER.'_you', $parameters); |
|
224 | 224 | $this->activityManager->publish($event); |
225 | 225 | |
226 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_by'; |
|
226 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_by'; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | $event->setAffectedUser($owner) |
@@ -244,13 +244,13 @@ discard block |
||
244 | 244 | ]; |
245 | 245 | |
246 | 246 | if ($owner === $event->getAuthor()) { |
247 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_you'; |
|
247 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP.'_you'; |
|
248 | 248 | } else { |
249 | 249 | $event->setAffectedUser($event->getAuthor()) |
250 | - ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP . '_you', $parameters); |
|
250 | + ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP.'_you', $parameters); |
|
251 | 251 | $this->activityManager->publish($event); |
252 | 252 | |
253 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_by'; |
|
253 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP.'_by'; |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | $event->setAffectedUser($owner) |
@@ -286,13 +286,13 @@ discard block |
||
286 | 286 | ]; |
287 | 287 | |
288 | 288 | if ($owner === $event->getAuthor()) { |
289 | - $subject = Calendar::SUBJECT_SHARE_USER . '_you'; |
|
289 | + $subject = Calendar::SUBJECT_SHARE_USER.'_you'; |
|
290 | 290 | } else { |
291 | 291 | $event->setAffectedUser($event->getAuthor()) |
292 | - ->setSubject(Calendar::SUBJECT_SHARE_USER . '_you', $parameters); |
|
292 | + ->setSubject(Calendar::SUBJECT_SHARE_USER.'_you', $parameters); |
|
293 | 293 | $this->activityManager->publish($event); |
294 | 294 | |
295 | - $subject = Calendar::SUBJECT_SHARE_USER . '_by'; |
|
295 | + $subject = Calendar::SUBJECT_SHARE_USER.'_by'; |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | $event->setAffectedUser($owner) |
@@ -313,13 +313,13 @@ discard block |
||
313 | 313 | ]; |
314 | 314 | |
315 | 315 | if ($owner === $event->getAuthor()) { |
316 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_you'; |
|
316 | + $subject = Calendar::SUBJECT_SHARE_GROUP.'_you'; |
|
317 | 317 | } else { |
318 | 318 | $event->setAffectedUser($event->getAuthor()) |
319 | - ->setSubject(Calendar::SUBJECT_SHARE_GROUP . '_you', $parameters); |
|
319 | + ->setSubject(Calendar::SUBJECT_SHARE_GROUP.'_you', $parameters); |
|
320 | 320 | $this->activityManager->publish($event); |
321 | 321 | |
322 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_by'; |
|
322 | + $subject = Calendar::SUBJECT_SHARE_GROUP.'_by'; |
|
323 | 323 | } |
324 | 324 | |
325 | 325 | $event->setAffectedUser($owner) |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | |
419 | 419 | $classification = isset($objectData['classification']) ? $objectData['classification'] : CalDavBackend::CLASSIFICATION_PUBLIC; |
420 | 420 | $object = $this->getObjectNameAndType($objectData); |
421 | - $action = $action . '_' . $object['type']; |
|
421 | + $action = $action.'_'.$object['type']; |
|
422 | 422 | |
423 | 423 | if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'COMPLETED') { |
424 | 424 | $action .= '_completed'; |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | |
444 | 444 | $event->setAffectedUser($user) |
445 | 445 | ->setSubject( |
446 | - $user === $currentUser ? $action . '_self' : $action, |
|
446 | + $user === $currentUser ? $action.'_self' : $action, |
|
447 | 447 | [ |
448 | 448 | 'actor' => $event->getAuthor(), |
449 | 449 | 'calendar' => [ |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | protected function getObjectNameAndType(array $objectData) { |
470 | 470 | $vObject = Reader::read($objectData['calendardata']); |
471 | 471 | $component = $componentType = null; |
472 | - foreach($vObject->getComponents() as $component) { |
|
472 | + foreach ($vObject->getComponents() as $component) { |
|
473 | 473 | if (in_array($component->name, ['VEVENT', 'VTODO'])) { |
474 | 474 | $componentType = $component->name; |
475 | 475 | break; |
@@ -35,146 +35,146 @@ |
||
35 | 35 | |
36 | 36 | class Event extends Base { |
37 | 37 | |
38 | - const SUBJECT_OBJECT_ADD = 'object_add'; |
|
39 | - const SUBJECT_OBJECT_UPDATE = 'object_update'; |
|
40 | - const SUBJECT_OBJECT_DELETE = 'object_delete'; |
|
41 | - |
|
42 | - /** @var IFactory */ |
|
43 | - protected $languageFactory; |
|
44 | - |
|
45 | - /** @var IL10N */ |
|
46 | - protected $l; |
|
47 | - |
|
48 | - /** @var IURLGenerator */ |
|
49 | - protected $url; |
|
50 | - |
|
51 | - /** @var IManager */ |
|
52 | - protected $activityManager; |
|
53 | - |
|
54 | - /** @var IEventMerger */ |
|
55 | - protected $eventMerger; |
|
56 | - |
|
57 | - /** |
|
58 | - * @param IFactory $languageFactory |
|
59 | - * @param IURLGenerator $url |
|
60 | - * @param IManager $activityManager |
|
61 | - * @param IUserManager $userManager |
|
62 | - * @param IGroupManager $groupManager |
|
63 | - * @param IEventMerger $eventMerger |
|
64 | - */ |
|
65 | - public function __construct(IFactory $languageFactory, IURLGenerator $url, IManager $activityManager, IUserManager $userManager, IGroupManager $groupManager, IEventMerger $eventMerger) { |
|
66 | - parent::__construct($userManager, $groupManager); |
|
67 | - $this->languageFactory = $languageFactory; |
|
68 | - $this->url = $url; |
|
69 | - $this->activityManager = $activityManager; |
|
70 | - $this->eventMerger = $eventMerger; |
|
71 | - } |
|
72 | - |
|
73 | - /** |
|
74 | - * @param string $language |
|
75 | - * @param IEvent $event |
|
76 | - * @param IEvent|null $previousEvent |
|
77 | - * @return IEvent |
|
78 | - * @throws \InvalidArgumentException |
|
79 | - * @since 11.0.0 |
|
80 | - */ |
|
81 | - public function parse($language, IEvent $event, IEvent $previousEvent = null) { |
|
82 | - if ($event->getApp() !== 'dav' || $event->getType() !== 'calendar_event') { |
|
83 | - throw new \InvalidArgumentException(); |
|
84 | - } |
|
85 | - |
|
86 | - $this->l = $this->languageFactory->get('dav', $language); |
|
87 | - |
|
88 | - if ($this->activityManager->getRequirePNG()) { |
|
89 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.png'))); |
|
90 | - } else { |
|
91 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.svg'))); |
|
92 | - } |
|
93 | - |
|
94 | - if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event') { |
|
95 | - $subject = $this->l->t('{actor} created event {event} in calendar {calendar}'); |
|
96 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event_self') { |
|
97 | - $subject = $this->l->t('You created event {event} in calendar {calendar}'); |
|
98 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event') { |
|
99 | - $subject = $this->l->t('{actor} deleted event {event} from calendar {calendar}'); |
|
100 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event_self') { |
|
101 | - $subject = $this->l->t('You deleted event {event} from calendar {calendar}'); |
|
102 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event') { |
|
103 | - $subject = $this->l->t('{actor} updated event {event} in calendar {calendar}'); |
|
104 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event_self') { |
|
105 | - $subject = $this->l->t('You updated event {event} in calendar {calendar}'); |
|
106 | - } else { |
|
107 | - throw new \InvalidArgumentException(); |
|
108 | - } |
|
109 | - |
|
110 | - $parsedParameters = $this->getParameters($event); |
|
111 | - $this->setSubjects($event, $subject, $parsedParameters); |
|
112 | - |
|
113 | - $event = $this->eventMerger->mergeEvents('event', $event, $previousEvent); |
|
114 | - |
|
115 | - return $event; |
|
116 | - } |
|
117 | - |
|
118 | - /** |
|
119 | - * @param IEvent $event |
|
120 | - * @return array |
|
121 | - */ |
|
122 | - protected function getParameters(IEvent $event) { |
|
123 | - $subject = $event->getSubject(); |
|
124 | - $parameters = $event->getSubjectParameters(); |
|
125 | - |
|
126 | - // Nextcloud 13+ |
|
127 | - if (isset($parameters['calendar'])) { |
|
128 | - switch ($subject) { |
|
129 | - case self::SUBJECT_OBJECT_ADD . '_event': |
|
130 | - case self::SUBJECT_OBJECT_DELETE . '_event': |
|
131 | - case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
132 | - return [ |
|
133 | - 'actor' => $this->generateUserParameter($parameters['actor']), |
|
134 | - 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
|
135 | - 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
|
136 | - ]; |
|
137 | - case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
138 | - case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
139 | - case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
140 | - return [ |
|
141 | - 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
|
142 | - 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
|
143 | - ]; |
|
144 | - } |
|
145 | - } |
|
146 | - |
|
147 | - // Legacy - Do NOT Remove unless necessary |
|
148 | - // Removing this will break parsing of activities that were created on |
|
149 | - // Nextcloud 12, so we should keep this as long as it's acceptable. |
|
150 | - // Otherwise if people upgrade over multiple releases in a short period, |
|
151 | - // they will get the dead entries in their stream. |
|
152 | - switch ($subject) { |
|
153 | - case self::SUBJECT_OBJECT_ADD . '_event': |
|
154 | - case self::SUBJECT_OBJECT_DELETE . '_event': |
|
155 | - case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
156 | - return [ |
|
157 | - 'actor' => $this->generateUserParameter($parameters[0]), |
|
158 | - 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
159 | - 'event' => $this->generateObjectParameter($parameters[2]), |
|
160 | - ]; |
|
161 | - case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
162 | - case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
163 | - case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
164 | - return [ |
|
165 | - 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
166 | - 'event' => $this->generateObjectParameter($parameters[2]), |
|
167 | - ]; |
|
168 | - } |
|
169 | - |
|
170 | - throw new \InvalidArgumentException(); |
|
171 | - } |
|
172 | - |
|
173 | - private function generateClassifiedObjectParameter(array $eventData) { |
|
174 | - $parameter = $this->generateObjectParameter($eventData); |
|
175 | - if (!empty($eventData['classified'])) { |
|
176 | - $parameter['name'] = $this->l->t('Busy'); |
|
177 | - } |
|
178 | - return $parameter; |
|
179 | - } |
|
38 | + const SUBJECT_OBJECT_ADD = 'object_add'; |
|
39 | + const SUBJECT_OBJECT_UPDATE = 'object_update'; |
|
40 | + const SUBJECT_OBJECT_DELETE = 'object_delete'; |
|
41 | + |
|
42 | + /** @var IFactory */ |
|
43 | + protected $languageFactory; |
|
44 | + |
|
45 | + /** @var IL10N */ |
|
46 | + protected $l; |
|
47 | + |
|
48 | + /** @var IURLGenerator */ |
|
49 | + protected $url; |
|
50 | + |
|
51 | + /** @var IManager */ |
|
52 | + protected $activityManager; |
|
53 | + |
|
54 | + /** @var IEventMerger */ |
|
55 | + protected $eventMerger; |
|
56 | + |
|
57 | + /** |
|
58 | + * @param IFactory $languageFactory |
|
59 | + * @param IURLGenerator $url |
|
60 | + * @param IManager $activityManager |
|
61 | + * @param IUserManager $userManager |
|
62 | + * @param IGroupManager $groupManager |
|
63 | + * @param IEventMerger $eventMerger |
|
64 | + */ |
|
65 | + public function __construct(IFactory $languageFactory, IURLGenerator $url, IManager $activityManager, IUserManager $userManager, IGroupManager $groupManager, IEventMerger $eventMerger) { |
|
66 | + parent::__construct($userManager, $groupManager); |
|
67 | + $this->languageFactory = $languageFactory; |
|
68 | + $this->url = $url; |
|
69 | + $this->activityManager = $activityManager; |
|
70 | + $this->eventMerger = $eventMerger; |
|
71 | + } |
|
72 | + |
|
73 | + /** |
|
74 | + * @param string $language |
|
75 | + * @param IEvent $event |
|
76 | + * @param IEvent|null $previousEvent |
|
77 | + * @return IEvent |
|
78 | + * @throws \InvalidArgumentException |
|
79 | + * @since 11.0.0 |
|
80 | + */ |
|
81 | + public function parse($language, IEvent $event, IEvent $previousEvent = null) { |
|
82 | + if ($event->getApp() !== 'dav' || $event->getType() !== 'calendar_event') { |
|
83 | + throw new \InvalidArgumentException(); |
|
84 | + } |
|
85 | + |
|
86 | + $this->l = $this->languageFactory->get('dav', $language); |
|
87 | + |
|
88 | + if ($this->activityManager->getRequirePNG()) { |
|
89 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.png'))); |
|
90 | + } else { |
|
91 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.svg'))); |
|
92 | + } |
|
93 | + |
|
94 | + if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event') { |
|
95 | + $subject = $this->l->t('{actor} created event {event} in calendar {calendar}'); |
|
96 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event_self') { |
|
97 | + $subject = $this->l->t('You created event {event} in calendar {calendar}'); |
|
98 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event') { |
|
99 | + $subject = $this->l->t('{actor} deleted event {event} from calendar {calendar}'); |
|
100 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event_self') { |
|
101 | + $subject = $this->l->t('You deleted event {event} from calendar {calendar}'); |
|
102 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event') { |
|
103 | + $subject = $this->l->t('{actor} updated event {event} in calendar {calendar}'); |
|
104 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event_self') { |
|
105 | + $subject = $this->l->t('You updated event {event} in calendar {calendar}'); |
|
106 | + } else { |
|
107 | + throw new \InvalidArgumentException(); |
|
108 | + } |
|
109 | + |
|
110 | + $parsedParameters = $this->getParameters($event); |
|
111 | + $this->setSubjects($event, $subject, $parsedParameters); |
|
112 | + |
|
113 | + $event = $this->eventMerger->mergeEvents('event', $event, $previousEvent); |
|
114 | + |
|
115 | + return $event; |
|
116 | + } |
|
117 | + |
|
118 | + /** |
|
119 | + * @param IEvent $event |
|
120 | + * @return array |
|
121 | + */ |
|
122 | + protected function getParameters(IEvent $event) { |
|
123 | + $subject = $event->getSubject(); |
|
124 | + $parameters = $event->getSubjectParameters(); |
|
125 | + |
|
126 | + // Nextcloud 13+ |
|
127 | + if (isset($parameters['calendar'])) { |
|
128 | + switch ($subject) { |
|
129 | + case self::SUBJECT_OBJECT_ADD . '_event': |
|
130 | + case self::SUBJECT_OBJECT_DELETE . '_event': |
|
131 | + case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
132 | + return [ |
|
133 | + 'actor' => $this->generateUserParameter($parameters['actor']), |
|
134 | + 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
|
135 | + 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
|
136 | + ]; |
|
137 | + case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
138 | + case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
139 | + case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
140 | + return [ |
|
141 | + 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
|
142 | + 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
|
143 | + ]; |
|
144 | + } |
|
145 | + } |
|
146 | + |
|
147 | + // Legacy - Do NOT Remove unless necessary |
|
148 | + // Removing this will break parsing of activities that were created on |
|
149 | + // Nextcloud 12, so we should keep this as long as it's acceptable. |
|
150 | + // Otherwise if people upgrade over multiple releases in a short period, |
|
151 | + // they will get the dead entries in their stream. |
|
152 | + switch ($subject) { |
|
153 | + case self::SUBJECT_OBJECT_ADD . '_event': |
|
154 | + case self::SUBJECT_OBJECT_DELETE . '_event': |
|
155 | + case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
156 | + return [ |
|
157 | + 'actor' => $this->generateUserParameter($parameters[0]), |
|
158 | + 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
159 | + 'event' => $this->generateObjectParameter($parameters[2]), |
|
160 | + ]; |
|
161 | + case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
162 | + case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
163 | + case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
164 | + return [ |
|
165 | + 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
166 | + 'event' => $this->generateObjectParameter($parameters[2]), |
|
167 | + ]; |
|
168 | + } |
|
169 | + |
|
170 | + throw new \InvalidArgumentException(); |
|
171 | + } |
|
172 | + |
|
173 | + private function generateClassifiedObjectParameter(array $eventData) { |
|
174 | + $parameter = $this->generateObjectParameter($eventData); |
|
175 | + if (!empty($eventData['classified'])) { |
|
176 | + $parameter['name'] = $this->l->t('Busy'); |
|
177 | + } |
|
178 | + return $parameter; |
|
179 | + } |
|
180 | 180 | } |
@@ -91,17 +91,17 @@ discard block |
||
91 | 91 | $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.svg'))); |
92 | 92 | } |
93 | 93 | |
94 | - if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event') { |
|
94 | + if ($event->getSubject() === self::SUBJECT_OBJECT_ADD.'_event') { |
|
95 | 95 | $subject = $this->l->t('{actor} created event {event} in calendar {calendar}'); |
96 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event_self') { |
|
96 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_ADD.'_event_self') { |
|
97 | 97 | $subject = $this->l->t('You created event {event} in calendar {calendar}'); |
98 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event') { |
|
98 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE.'_event') { |
|
99 | 99 | $subject = $this->l->t('{actor} deleted event {event} from calendar {calendar}'); |
100 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE . '_event_self') { |
|
100 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_DELETE.'_event_self') { |
|
101 | 101 | $subject = $this->l->t('You deleted event {event} from calendar {calendar}'); |
102 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event') { |
|
102 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE.'_event') { |
|
103 | 103 | $subject = $this->l->t('{actor} updated event {event} in calendar {calendar}'); |
104 | - } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE . '_event_self') { |
|
104 | + } else if ($event->getSubject() === self::SUBJECT_OBJECT_UPDATE.'_event_self') { |
|
105 | 105 | $subject = $this->l->t('You updated event {event} in calendar {calendar}'); |
106 | 106 | } else { |
107 | 107 | throw new \InvalidArgumentException(); |
@@ -126,17 +126,17 @@ discard block |
||
126 | 126 | // Nextcloud 13+ |
127 | 127 | if (isset($parameters['calendar'])) { |
128 | 128 | switch ($subject) { |
129 | - case self::SUBJECT_OBJECT_ADD . '_event': |
|
130 | - case self::SUBJECT_OBJECT_DELETE . '_event': |
|
131 | - case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
129 | + case self::SUBJECT_OBJECT_ADD.'_event': |
|
130 | + case self::SUBJECT_OBJECT_DELETE.'_event': |
|
131 | + case self::SUBJECT_OBJECT_UPDATE.'_event': |
|
132 | 132 | return [ |
133 | 133 | 'actor' => $this->generateUserParameter($parameters['actor']), |
134 | 134 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
135 | 135 | 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
136 | 136 | ]; |
137 | - case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
138 | - case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
139 | - case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
137 | + case self::SUBJECT_OBJECT_ADD.'_event_self': |
|
138 | + case self::SUBJECT_OBJECT_DELETE.'_event_self': |
|
139 | + case self::SUBJECT_OBJECT_UPDATE.'_event_self': |
|
140 | 140 | return [ |
141 | 141 | 'calendar' => $this->generateCalendarParameter($parameters['calendar'], $this->l), |
142 | 142 | 'event' => $this->generateClassifiedObjectParameter($parameters['object']), |
@@ -150,19 +150,19 @@ discard block |
||
150 | 150 | // Otherwise if people upgrade over multiple releases in a short period, |
151 | 151 | // they will get the dead entries in their stream. |
152 | 152 | switch ($subject) { |
153 | - case self::SUBJECT_OBJECT_ADD . '_event': |
|
154 | - case self::SUBJECT_OBJECT_DELETE . '_event': |
|
155 | - case self::SUBJECT_OBJECT_UPDATE . '_event': |
|
153 | + case self::SUBJECT_OBJECT_ADD.'_event': |
|
154 | + case self::SUBJECT_OBJECT_DELETE.'_event': |
|
155 | + case self::SUBJECT_OBJECT_UPDATE.'_event': |
|
156 | 156 | return [ |
157 | 157 | 'actor' => $this->generateUserParameter($parameters[0]), |
158 | - 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
158 | + 'calendar' => $this->generateLegacyCalendarParameter((int) $event->getObjectId(), $parameters[1]), |
|
159 | 159 | 'event' => $this->generateObjectParameter($parameters[2]), |
160 | 160 | ]; |
161 | - case self::SUBJECT_OBJECT_ADD . '_event_self': |
|
162 | - case self::SUBJECT_OBJECT_DELETE . '_event_self': |
|
163 | - case self::SUBJECT_OBJECT_UPDATE . '_event_self': |
|
161 | + case self::SUBJECT_OBJECT_ADD.'_event_self': |
|
162 | + case self::SUBJECT_OBJECT_DELETE.'_event_self': |
|
163 | + case self::SUBJECT_OBJECT_UPDATE.'_event_self': |
|
164 | 164 | return [ |
165 | - 'calendar' => $this->generateLegacyCalendarParameter((int)$event->getObjectId(), $parameters[1]), |
|
165 | + 'calendar' => $this->generateLegacyCalendarParameter((int) $event->getObjectId(), $parameters[1]), |
|
166 | 166 | 'event' => $this->generateObjectParameter($parameters[2]), |
167 | 167 | ]; |
168 | 168 | } |
@@ -6,174 +6,174 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitDAV |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\DAV\\' => 8, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\DAV\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/../lib', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'OCA\\DAV\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
25 | - 'OCA\\DAV\\AppInfo\\PluginManager' => __DIR__ . '/..' . '/../lib/AppInfo/PluginManager.php', |
|
26 | - 'OCA\\DAV\\Avatars\\AvatarHome' => __DIR__ . '/..' . '/../lib/Avatars/AvatarHome.php', |
|
27 | - 'OCA\\DAV\\Avatars\\AvatarNode' => __DIR__ . '/..' . '/../lib/Avatars/AvatarNode.php', |
|
28 | - 'OCA\\DAV\\Avatars\\RootCollection' => __DIR__ . '/..' . '/../lib/Avatars/RootCollection.php', |
|
29 | - 'OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php', |
|
30 | - 'OCA\\DAV\\CalDAV\\Activity\\Backend' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Backend.php', |
|
31 | - 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Calendar' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Filter/Calendar.php', |
|
32 | - 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Todo' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Filter/Todo.php', |
|
33 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Base' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Provider/Base.php', |
|
34 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Calendar' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Provider/Calendar.php', |
|
35 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Event' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Provider/Event.php', |
|
36 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Todo' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Provider/Todo.php', |
|
37 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Calendar' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Setting/Calendar.php', |
|
38 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Event' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Setting/Event.php', |
|
39 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Todo' => __DIR__ . '/..' . '/../lib/CalDAV/Activity/Setting/Todo.php', |
|
40 | - 'OCA\\DAV\\CalDAV\\BirthdayCalendar\\EnablePlugin' => __DIR__ . '/..' . '/../lib/CalDAV/BirthdayCalendar/EnablePlugin.php', |
|
41 | - 'OCA\\DAV\\CalDAV\\BirthdayService' => __DIR__ . '/..' . '/../lib/CalDAV/BirthdayService.php', |
|
42 | - 'OCA\\DAV\\CalDAV\\CalDavBackend' => __DIR__ . '/..' . '/../lib/CalDAV/CalDavBackend.php', |
|
43 | - 'OCA\\DAV\\CalDAV\\Calendar' => __DIR__ . '/..' . '/../lib/CalDAV/Calendar.php', |
|
44 | - 'OCA\\DAV\\CalDAV\\CalendarHome' => __DIR__ . '/..' . '/../lib/CalDAV/CalendarHome.php', |
|
45 | - 'OCA\\DAV\\CalDAV\\CalendarImpl' => __DIR__ . '/..' . '/../lib/CalDAV/CalendarImpl.php', |
|
46 | - 'OCA\\DAV\\CalDAV\\CalendarManager' => __DIR__ . '/..' . '/../lib/CalDAV/CalendarManager.php', |
|
47 | - 'OCA\\DAV\\CalDAV\\CalendarObject' => __DIR__ . '/..' . '/../lib/CalDAV/CalendarObject.php', |
|
48 | - 'OCA\\DAV\\CalDAV\\CalendarRoot' => __DIR__ . '/..' . '/../lib/CalDAV/CalendarRoot.php', |
|
49 | - 'OCA\\DAV\\CalDAV\\Outbox' => __DIR__ . '/..' . '/../lib/CalDAV/Outbox.php', |
|
50 | - 'OCA\\DAV\\CalDAV\\Plugin' => __DIR__ . '/..' . '/../lib/CalDAV/Plugin.php', |
|
51 | - 'OCA\\DAV\\CalDAV\\Principal\\Collection' => __DIR__ . '/..' . '/../lib/CalDAV/Principal/Collection.php', |
|
52 | - 'OCA\\DAV\\CalDAV\\Principal\\User' => __DIR__ . '/..' . '/../lib/CalDAV/Principal/User.php', |
|
53 | - 'OCA\\DAV\\CalDAV\\PublicCalendar' => __DIR__ . '/..' . '/../lib/CalDAV/PublicCalendar.php', |
|
54 | - 'OCA\\DAV\\CalDAV\\PublicCalendarObject' => __DIR__ . '/..' . '/../lib/CalDAV/PublicCalendarObject.php', |
|
55 | - 'OCA\\DAV\\CalDAV\\PublicCalendarRoot' => __DIR__ . '/..' . '/../lib/CalDAV/PublicCalendarRoot.php', |
|
56 | - 'OCA\\DAV\\CalDAV\\Publishing\\PublishPlugin' => __DIR__ . '/..' . '/../lib/CalDAV/Publishing/PublishPlugin.php', |
|
57 | - 'OCA\\DAV\\CalDAV\\Publishing\\Xml\\Publisher' => __DIR__ . '/..' . '/../lib/CalDAV/Publishing/Xml/Publisher.php', |
|
58 | - 'OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin' => __DIR__ . '/..' . '/../lib/CalDAV/Schedule/IMipPlugin.php', |
|
59 | - 'OCA\\DAV\\CalDAV\\Schedule\\Plugin' => __DIR__ . '/..' . '/../lib/CalDAV/Schedule/Plugin.php', |
|
60 | - 'OCA\\DAV\\CalDAV\\Search\\SearchPlugin' => __DIR__ . '/..' . '/../lib/CalDAV/Search/SearchPlugin.php', |
|
61 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\CompFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/CompFilter.php', |
|
62 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\LimitFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/LimitFilter.php', |
|
63 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\OffsetFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/OffsetFilter.php', |
|
64 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\ParamFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/ParamFilter.php', |
|
65 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/PropFilter.php', |
|
66 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php', |
|
67 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => __DIR__ . '/..' . '/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php', |
|
68 | - 'OCA\\DAV\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
69 | - 'OCA\\DAV\\CardDAV\\AddressBook' => __DIR__ . '/..' . '/../lib/CardDAV/AddressBook.php', |
|
70 | - 'OCA\\DAV\\CardDAV\\AddressBookImpl' => __DIR__ . '/..' . '/../lib/CardDAV/AddressBookImpl.php', |
|
71 | - 'OCA\\DAV\\CardDAV\\AddressBookRoot' => __DIR__ . '/..' . '/../lib/CardDAV/AddressBookRoot.php', |
|
72 | - 'OCA\\DAV\\CardDAV\\CardDavBackend' => __DIR__ . '/..' . '/../lib/CardDAV/CardDavBackend.php', |
|
73 | - 'OCA\\DAV\\CardDAV\\ContactsManager' => __DIR__ . '/..' . '/../lib/CardDAV/ContactsManager.php', |
|
74 | - 'OCA\\DAV\\CardDAV\\Converter' => __DIR__ . '/..' . '/../lib/CardDAV/Converter.php', |
|
75 | - 'OCA\\DAV\\CardDAV\\ImageExportPlugin' => __DIR__ . '/..' . '/../lib/CardDAV/ImageExportPlugin.php', |
|
76 | - 'OCA\\DAV\\CardDAV\\PhotoCache' => __DIR__ . '/..' . '/../lib/CardDAV/PhotoCache.php', |
|
77 | - 'OCA\\DAV\\CardDAV\\Plugin' => __DIR__ . '/..' . '/../lib/CardDAV/Plugin.php', |
|
78 | - 'OCA\\DAV\\CardDAV\\SyncService' => __DIR__ . '/..' . '/../lib/CardDAV/SyncService.php', |
|
79 | - 'OCA\\DAV\\CardDAV\\UserAddressBooks' => __DIR__ . '/..' . '/../lib/CardDAV/UserAddressBooks.php', |
|
80 | - 'OCA\\DAV\\CardDAV\\Xml\\Groups' => __DIR__ . '/..' . '/../lib/CardDAV/Xml/Groups.php', |
|
81 | - 'OCA\\DAV\\Command\\CreateAddressBook' => __DIR__ . '/..' . '/../lib/Command/CreateAddressBook.php', |
|
82 | - 'OCA\\DAV\\Command\\CreateCalendar' => __DIR__ . '/..' . '/../lib/Command/CreateCalendar.php', |
|
83 | - 'OCA\\DAV\\Command\\RemoveInvalidShares' => __DIR__ . '/..' . '/../lib/Command/RemoveInvalidShares.php', |
|
84 | - 'OCA\\DAV\\Command\\SyncBirthdayCalendar' => __DIR__ . '/..' . '/../lib/Command/SyncBirthdayCalendar.php', |
|
85 | - 'OCA\\DAV\\Command\\SyncSystemAddressBook' => __DIR__ . '/..' . '/../lib/Command/SyncSystemAddressBook.php', |
|
86 | - 'OCA\\DAV\\Comments\\CommentNode' => __DIR__ . '/..' . '/../lib/Comments/CommentNode.php', |
|
87 | - 'OCA\\DAV\\Comments\\CommentsPlugin' => __DIR__ . '/..' . '/../lib/Comments/CommentsPlugin.php', |
|
88 | - 'OCA\\DAV\\Comments\\EntityCollection' => __DIR__ . '/..' . '/../lib/Comments/EntityCollection.php', |
|
89 | - 'OCA\\DAV\\Comments\\EntityTypeCollection' => __DIR__ . '/..' . '/../lib/Comments/EntityTypeCollection.php', |
|
90 | - 'OCA\\DAV\\Comments\\RootCollection' => __DIR__ . '/..' . '/../lib/Comments/RootCollection.php', |
|
91 | - 'OCA\\DAV\\Connector\\LegacyDAVACL' => __DIR__ . '/..' . '/../lib/Connector/LegacyDAVACL.php', |
|
92 | - 'OCA\\DAV\\Connector\\PublicAuth' => __DIR__ . '/..' . '/../lib/Connector/PublicAuth.php', |
|
93 | - 'OCA\\DAV\\Connector\\Sabre\\AnonymousOptionsPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/AnonymousOptionsPlugin.php', |
|
94 | - 'OCA\\DAV\\Connector\\Sabre\\AppEnabledPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/AppEnabledPlugin.php', |
|
95 | - 'OCA\\DAV\\Connector\\Sabre\\Auth' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Auth.php', |
|
96 | - 'OCA\\DAV\\Connector\\Sabre\\BearerAuth' => __DIR__ . '/..' . '/../lib/Connector/Sabre/BearerAuth.php', |
|
97 | - 'OCA\\DAV\\Connector\\Sabre\\BlockLegacyClientPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/BlockLegacyClientPlugin.php', |
|
98 | - 'OCA\\DAV\\Connector\\Sabre\\CachingTree' => __DIR__ . '/..' . '/../lib/Connector/Sabre/CachingTree.php', |
|
99 | - 'OCA\\DAV\\Connector\\Sabre\\ChecksumList' => __DIR__ . '/..' . '/../lib/Connector/Sabre/ChecksumList.php', |
|
100 | - 'OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/CommentPropertiesPlugin.php', |
|
101 | - 'OCA\\DAV\\Connector\\Sabre\\CopyEtagHeaderPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/CopyEtagHeaderPlugin.php', |
|
102 | - 'OCA\\DAV\\Connector\\Sabre\\CustomPropertiesBackend' => __DIR__ . '/..' . '/../lib/Connector/Sabre/CustomPropertiesBackend.php', |
|
103 | - 'OCA\\DAV\\Connector\\Sabre\\DavAclPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/DavAclPlugin.php', |
|
104 | - 'OCA\\DAV\\Connector\\Sabre\\Directory' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Directory.php', |
|
105 | - 'OCA\\DAV\\Connector\\Sabre\\DummyGetResponsePlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/DummyGetResponsePlugin.php', |
|
106 | - 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/ExceptionLoggerPlugin.php', |
|
107 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\EntityTooLarge' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/EntityTooLarge.php', |
|
108 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/FileLocked.php', |
|
109 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/Forbidden.php', |
|
110 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/InvalidPath.php', |
|
111 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\PasswordLoginForbidden' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/PasswordLoginForbidden.php', |
|
112 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\UnsupportedMediaType' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Exception/UnsupportedMediaType.php', |
|
113 | - 'OCA\\DAV\\Connector\\Sabre\\FakeLockerPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/FakeLockerPlugin.php', |
|
114 | - 'OCA\\DAV\\Connector\\Sabre\\File' => __DIR__ . '/..' . '/../lib/Connector/Sabre/File.php', |
|
115 | - 'OCA\\DAV\\Connector\\Sabre\\FilesPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/FilesPlugin.php', |
|
116 | - 'OCA\\DAV\\Connector\\Sabre\\FilesReportPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/FilesReportPlugin.php', |
|
117 | - 'OCA\\DAV\\Connector\\Sabre\\LockPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/LockPlugin.php', |
|
118 | - 'OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/MaintenancePlugin.php', |
|
119 | - 'OCA\\DAV\\Connector\\Sabre\\Node' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Node.php', |
|
120 | - 'OCA\\DAV\\Connector\\Sabre\\ObjectTree' => __DIR__ . '/..' . '/../lib/Connector/Sabre/ObjectTree.php', |
|
121 | - 'OCA\\DAV\\Connector\\Sabre\\Principal' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Principal.php', |
|
122 | - 'OCA\\DAV\\Connector\\Sabre\\QuotaPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/QuotaPlugin.php', |
|
123 | - 'OCA\\DAV\\Connector\\Sabre\\Server' => __DIR__ . '/..' . '/../lib/Connector/Sabre/Server.php', |
|
124 | - 'OCA\\DAV\\Connector\\Sabre\\ServerFactory' => __DIR__ . '/..' . '/../lib/Connector/Sabre/ServerFactory.php', |
|
125 | - 'OCA\\DAV\\Connector\\Sabre\\ShareTypeList' => __DIR__ . '/..' . '/../lib/Connector/Sabre/ShareTypeList.php', |
|
126 | - 'OCA\\DAV\\Connector\\Sabre\\SharesPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/SharesPlugin.php', |
|
127 | - 'OCA\\DAV\\Connector\\Sabre\\TagList' => __DIR__ . '/..' . '/../lib/Connector/Sabre/TagList.php', |
|
128 | - 'OCA\\DAV\\Connector\\Sabre\\TagsPlugin' => __DIR__ . '/..' . '/../lib/Connector/Sabre/TagsPlugin.php', |
|
129 | - 'OCA\\DAV\\Controller\\BirthdayCalendarController' => __DIR__ . '/..' . '/../lib/Controller/BirthdayCalendarController.php', |
|
130 | - 'OCA\\DAV\\DAV\\CustomPropertiesBackend' => __DIR__ . '/..' . '/../lib/DAV/CustomPropertiesBackend.php', |
|
131 | - 'OCA\\DAV\\DAV\\GroupPrincipalBackend' => __DIR__ . '/..' . '/../lib/DAV/GroupPrincipalBackend.php', |
|
132 | - 'OCA\\DAV\\DAV\\PublicAuth' => __DIR__ . '/..' . '/../lib/DAV/PublicAuth.php', |
|
133 | - 'OCA\\DAV\\DAV\\Sharing\\Backend' => __DIR__ . '/..' . '/../lib/DAV/Sharing/Backend.php', |
|
134 | - 'OCA\\DAV\\DAV\\Sharing\\IShareable' => __DIR__ . '/..' . '/../lib/DAV/Sharing/IShareable.php', |
|
135 | - 'OCA\\DAV\\DAV\\Sharing\\Plugin' => __DIR__ . '/..' . '/../lib/DAV/Sharing/Plugin.php', |
|
136 | - 'OCA\\DAV\\DAV\\Sharing\\Xml\\Invite' => __DIR__ . '/..' . '/../lib/DAV/Sharing/Xml/Invite.php', |
|
137 | - 'OCA\\DAV\\DAV\\Sharing\\Xml\\ShareRequest' => __DIR__ . '/..' . '/../lib/DAV/Sharing/Xml/ShareRequest.php', |
|
138 | - 'OCA\\DAV\\DAV\\SystemPrincipalBackend' => __DIR__ . '/..' . '/../lib/DAV/SystemPrincipalBackend.php', |
|
139 | - 'OCA\\DAV\\Files\\BrowserErrorPagePlugin' => __DIR__ . '/..' . '/../lib/Files/BrowserErrorPagePlugin.php', |
|
140 | - 'OCA\\DAV\\Files\\FileSearchBackend' => __DIR__ . '/..' . '/../lib/Files/FileSearchBackend.php', |
|
141 | - 'OCA\\DAV\\Files\\FilesHome' => __DIR__ . '/..' . '/../lib/Files/FilesHome.php', |
|
142 | - 'OCA\\DAV\\Files\\LazySearchBackend' => __DIR__ . '/..' . '/../lib/Files/LazySearchBackend.php', |
|
143 | - 'OCA\\DAV\\Files\\RootCollection' => __DIR__ . '/..' . '/../lib/Files/RootCollection.php', |
|
144 | - 'OCA\\DAV\\Files\\Sharing\\FilesDropPlugin' => __DIR__ . '/..' . '/../lib/Files/Sharing/FilesDropPlugin.php', |
|
145 | - 'OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin' => __DIR__ . '/..' . '/../lib/Files/Sharing/PublicLinkCheckPlugin.php', |
|
146 | - 'OCA\\DAV\\HookManager' => __DIR__ . '/..' . '/../lib/HookManager.php', |
|
147 | - 'OCA\\DAV\\Migration\\BuildCalendarSearchIndex' => __DIR__ . '/..' . '/../lib/Migration/BuildCalendarSearchIndex.php', |
|
148 | - 'OCA\\DAV\\Migration\\BuildCalendarSearchIndexBackgroundJob' => __DIR__ . '/..' . '/../lib/Migration/BuildCalendarSearchIndexBackgroundJob.php', |
|
149 | - 'OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue' => __DIR__ . '/..' . '/../lib/Migration/CalDAVRemoveEmptyValue.php', |
|
150 | - 'OCA\\DAV\\Migration\\FixBirthdayCalendarComponent' => __DIR__ . '/..' . '/../lib/Migration/FixBirthdayCalendarComponent.php', |
|
151 | - 'OCA\\DAV\\Migration\\RemoveClassifiedEventActivity' => __DIR__ . '/..' . '/../lib/Migration/RemoveClassifiedEventActivity.php', |
|
152 | - 'OCA\\DAV\\Migration\\Version1004Date20170825134824' => __DIR__ . '/..' . '/../lib/Migration/Version1004Date20170825134824.php', |
|
153 | - 'OCA\\DAV\\Migration\\Version1004Date20170919104507' => __DIR__ . '/..' . '/../lib/Migration/Version1004Date20170919104507.php', |
|
154 | - 'OCA\\DAV\\Migration\\Version1004Date20170924124212' => __DIR__ . '/..' . '/../lib/Migration/Version1004Date20170924124212.php', |
|
155 | - 'OCA\\DAV\\Migration\\Version1004Date20170926103422' => __DIR__ . '/..' . '/../lib/Migration/Version1004Date20170926103422.php', |
|
156 | - 'OCA\\DAV\\RootCollection' => __DIR__ . '/..' . '/../lib/RootCollection.php', |
|
157 | - 'OCA\\DAV\\Server' => __DIR__ . '/..' . '/../lib/Server.php', |
|
158 | - 'OCA\\DAV\\Settings\\CalDAVSettings' => __DIR__ . '/..' . '/../lib/Settings/CalDAVSettings.php', |
|
159 | - 'OCA\\DAV\\SystemTag\\SystemTagMappingNode' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagMappingNode.php', |
|
160 | - 'OCA\\DAV\\SystemTag\\SystemTagNode' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagNode.php', |
|
161 | - 'OCA\\DAV\\SystemTag\\SystemTagPlugin' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagPlugin.php', |
|
162 | - 'OCA\\DAV\\SystemTag\\SystemTagsByIdCollection' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagsByIdCollection.php', |
|
163 | - 'OCA\\DAV\\SystemTag\\SystemTagsObjectMappingCollection' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagsObjectMappingCollection.php', |
|
164 | - 'OCA\\DAV\\SystemTag\\SystemTagsObjectTypeCollection' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagsObjectTypeCollection.php', |
|
165 | - 'OCA\\DAV\\SystemTag\\SystemTagsRelationsCollection' => __DIR__ . '/..' . '/../lib/SystemTag/SystemTagsRelationsCollection.php', |
|
166 | - 'OCA\\DAV\\Upload\\AssemblyStream' => __DIR__ . '/..' . '/../lib/Upload/AssemblyStream.php', |
|
167 | - 'OCA\\DAV\\Upload\\ChunkingPlugin' => __DIR__ . '/..' . '/../lib/Upload/ChunkingPlugin.php', |
|
168 | - 'OCA\\DAV\\Upload\\FutureFile' => __DIR__ . '/..' . '/../lib/Upload/FutureFile.php', |
|
169 | - 'OCA\\DAV\\Upload\\RootCollection' => __DIR__ . '/..' . '/../lib/Upload/RootCollection.php', |
|
170 | - 'OCA\\DAV\\Upload\\UploadFolder' => __DIR__ . '/..' . '/../lib/Upload/UploadFolder.php', |
|
171 | - 'OCA\\DAV\\Upload\\UploadHome' => __DIR__ . '/..' . '/../lib/Upload/UploadHome.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'OCA\\DAV\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
25 | + 'OCA\\DAV\\AppInfo\\PluginManager' => __DIR__.'/..'.'/../lib/AppInfo/PluginManager.php', |
|
26 | + 'OCA\\DAV\\Avatars\\AvatarHome' => __DIR__.'/..'.'/../lib/Avatars/AvatarHome.php', |
|
27 | + 'OCA\\DAV\\Avatars\\AvatarNode' => __DIR__.'/..'.'/../lib/Avatars/AvatarNode.php', |
|
28 | + 'OCA\\DAV\\Avatars\\RootCollection' => __DIR__.'/..'.'/../lib/Avatars/RootCollection.php', |
|
29 | + 'OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob' => __DIR__.'/..'.'/../lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php', |
|
30 | + 'OCA\\DAV\\CalDAV\\Activity\\Backend' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Backend.php', |
|
31 | + 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Calendar' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Filter/Calendar.php', |
|
32 | + 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Todo' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Filter/Todo.php', |
|
33 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Base' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Provider/Base.php', |
|
34 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Calendar' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Provider/Calendar.php', |
|
35 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Event' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Provider/Event.php', |
|
36 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Todo' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Provider/Todo.php', |
|
37 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Calendar' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Setting/Calendar.php', |
|
38 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Event' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Setting/Event.php', |
|
39 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Todo' => __DIR__.'/..'.'/../lib/CalDAV/Activity/Setting/Todo.php', |
|
40 | + 'OCA\\DAV\\CalDAV\\BirthdayCalendar\\EnablePlugin' => __DIR__.'/..'.'/../lib/CalDAV/BirthdayCalendar/EnablePlugin.php', |
|
41 | + 'OCA\\DAV\\CalDAV\\BirthdayService' => __DIR__.'/..'.'/../lib/CalDAV/BirthdayService.php', |
|
42 | + 'OCA\\DAV\\CalDAV\\CalDavBackend' => __DIR__.'/..'.'/../lib/CalDAV/CalDavBackend.php', |
|
43 | + 'OCA\\DAV\\CalDAV\\Calendar' => __DIR__.'/..'.'/../lib/CalDAV/Calendar.php', |
|
44 | + 'OCA\\DAV\\CalDAV\\CalendarHome' => __DIR__.'/..'.'/../lib/CalDAV/CalendarHome.php', |
|
45 | + 'OCA\\DAV\\CalDAV\\CalendarImpl' => __DIR__.'/..'.'/../lib/CalDAV/CalendarImpl.php', |
|
46 | + 'OCA\\DAV\\CalDAV\\CalendarManager' => __DIR__.'/..'.'/../lib/CalDAV/CalendarManager.php', |
|
47 | + 'OCA\\DAV\\CalDAV\\CalendarObject' => __DIR__.'/..'.'/../lib/CalDAV/CalendarObject.php', |
|
48 | + 'OCA\\DAV\\CalDAV\\CalendarRoot' => __DIR__.'/..'.'/../lib/CalDAV/CalendarRoot.php', |
|
49 | + 'OCA\\DAV\\CalDAV\\Outbox' => __DIR__.'/..'.'/../lib/CalDAV/Outbox.php', |
|
50 | + 'OCA\\DAV\\CalDAV\\Plugin' => __DIR__.'/..'.'/../lib/CalDAV/Plugin.php', |
|
51 | + 'OCA\\DAV\\CalDAV\\Principal\\Collection' => __DIR__.'/..'.'/../lib/CalDAV/Principal/Collection.php', |
|
52 | + 'OCA\\DAV\\CalDAV\\Principal\\User' => __DIR__.'/..'.'/../lib/CalDAV/Principal/User.php', |
|
53 | + 'OCA\\DAV\\CalDAV\\PublicCalendar' => __DIR__.'/..'.'/../lib/CalDAV/PublicCalendar.php', |
|
54 | + 'OCA\\DAV\\CalDAV\\PublicCalendarObject' => __DIR__.'/..'.'/../lib/CalDAV/PublicCalendarObject.php', |
|
55 | + 'OCA\\DAV\\CalDAV\\PublicCalendarRoot' => __DIR__.'/..'.'/../lib/CalDAV/PublicCalendarRoot.php', |
|
56 | + 'OCA\\DAV\\CalDAV\\Publishing\\PublishPlugin' => __DIR__.'/..'.'/../lib/CalDAV/Publishing/PublishPlugin.php', |
|
57 | + 'OCA\\DAV\\CalDAV\\Publishing\\Xml\\Publisher' => __DIR__.'/..'.'/../lib/CalDAV/Publishing/Xml/Publisher.php', |
|
58 | + 'OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin' => __DIR__.'/..'.'/../lib/CalDAV/Schedule/IMipPlugin.php', |
|
59 | + 'OCA\\DAV\\CalDAV\\Schedule\\Plugin' => __DIR__.'/..'.'/../lib/CalDAV/Schedule/Plugin.php', |
|
60 | + 'OCA\\DAV\\CalDAV\\Search\\SearchPlugin' => __DIR__.'/..'.'/../lib/CalDAV/Search/SearchPlugin.php', |
|
61 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\CompFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/CompFilter.php', |
|
62 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\LimitFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/LimitFilter.php', |
|
63 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\OffsetFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/OffsetFilter.php', |
|
64 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\ParamFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/ParamFilter.php', |
|
65 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/PropFilter.php', |
|
66 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php', |
|
67 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => __DIR__.'/..'.'/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php', |
|
68 | + 'OCA\\DAV\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
69 | + 'OCA\\DAV\\CardDAV\\AddressBook' => __DIR__.'/..'.'/../lib/CardDAV/AddressBook.php', |
|
70 | + 'OCA\\DAV\\CardDAV\\AddressBookImpl' => __DIR__.'/..'.'/../lib/CardDAV/AddressBookImpl.php', |
|
71 | + 'OCA\\DAV\\CardDAV\\AddressBookRoot' => __DIR__.'/..'.'/../lib/CardDAV/AddressBookRoot.php', |
|
72 | + 'OCA\\DAV\\CardDAV\\CardDavBackend' => __DIR__.'/..'.'/../lib/CardDAV/CardDavBackend.php', |
|
73 | + 'OCA\\DAV\\CardDAV\\ContactsManager' => __DIR__.'/..'.'/../lib/CardDAV/ContactsManager.php', |
|
74 | + 'OCA\\DAV\\CardDAV\\Converter' => __DIR__.'/..'.'/../lib/CardDAV/Converter.php', |
|
75 | + 'OCA\\DAV\\CardDAV\\ImageExportPlugin' => __DIR__.'/..'.'/../lib/CardDAV/ImageExportPlugin.php', |
|
76 | + 'OCA\\DAV\\CardDAV\\PhotoCache' => __DIR__.'/..'.'/../lib/CardDAV/PhotoCache.php', |
|
77 | + 'OCA\\DAV\\CardDAV\\Plugin' => __DIR__.'/..'.'/../lib/CardDAV/Plugin.php', |
|
78 | + 'OCA\\DAV\\CardDAV\\SyncService' => __DIR__.'/..'.'/../lib/CardDAV/SyncService.php', |
|
79 | + 'OCA\\DAV\\CardDAV\\UserAddressBooks' => __DIR__.'/..'.'/../lib/CardDAV/UserAddressBooks.php', |
|
80 | + 'OCA\\DAV\\CardDAV\\Xml\\Groups' => __DIR__.'/..'.'/../lib/CardDAV/Xml/Groups.php', |
|
81 | + 'OCA\\DAV\\Command\\CreateAddressBook' => __DIR__.'/..'.'/../lib/Command/CreateAddressBook.php', |
|
82 | + 'OCA\\DAV\\Command\\CreateCalendar' => __DIR__.'/..'.'/../lib/Command/CreateCalendar.php', |
|
83 | + 'OCA\\DAV\\Command\\RemoveInvalidShares' => __DIR__.'/..'.'/../lib/Command/RemoveInvalidShares.php', |
|
84 | + 'OCA\\DAV\\Command\\SyncBirthdayCalendar' => __DIR__.'/..'.'/../lib/Command/SyncBirthdayCalendar.php', |
|
85 | + 'OCA\\DAV\\Command\\SyncSystemAddressBook' => __DIR__.'/..'.'/../lib/Command/SyncSystemAddressBook.php', |
|
86 | + 'OCA\\DAV\\Comments\\CommentNode' => __DIR__.'/..'.'/../lib/Comments/CommentNode.php', |
|
87 | + 'OCA\\DAV\\Comments\\CommentsPlugin' => __DIR__.'/..'.'/../lib/Comments/CommentsPlugin.php', |
|
88 | + 'OCA\\DAV\\Comments\\EntityCollection' => __DIR__.'/..'.'/../lib/Comments/EntityCollection.php', |
|
89 | + 'OCA\\DAV\\Comments\\EntityTypeCollection' => __DIR__.'/..'.'/../lib/Comments/EntityTypeCollection.php', |
|
90 | + 'OCA\\DAV\\Comments\\RootCollection' => __DIR__.'/..'.'/../lib/Comments/RootCollection.php', |
|
91 | + 'OCA\\DAV\\Connector\\LegacyDAVACL' => __DIR__.'/..'.'/../lib/Connector/LegacyDAVACL.php', |
|
92 | + 'OCA\\DAV\\Connector\\PublicAuth' => __DIR__.'/..'.'/../lib/Connector/PublicAuth.php', |
|
93 | + 'OCA\\DAV\\Connector\\Sabre\\AnonymousOptionsPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/AnonymousOptionsPlugin.php', |
|
94 | + 'OCA\\DAV\\Connector\\Sabre\\AppEnabledPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/AppEnabledPlugin.php', |
|
95 | + 'OCA\\DAV\\Connector\\Sabre\\Auth' => __DIR__.'/..'.'/../lib/Connector/Sabre/Auth.php', |
|
96 | + 'OCA\\DAV\\Connector\\Sabre\\BearerAuth' => __DIR__.'/..'.'/../lib/Connector/Sabre/BearerAuth.php', |
|
97 | + 'OCA\\DAV\\Connector\\Sabre\\BlockLegacyClientPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/BlockLegacyClientPlugin.php', |
|
98 | + 'OCA\\DAV\\Connector\\Sabre\\CachingTree' => __DIR__.'/..'.'/../lib/Connector/Sabre/CachingTree.php', |
|
99 | + 'OCA\\DAV\\Connector\\Sabre\\ChecksumList' => __DIR__.'/..'.'/../lib/Connector/Sabre/ChecksumList.php', |
|
100 | + 'OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/CommentPropertiesPlugin.php', |
|
101 | + 'OCA\\DAV\\Connector\\Sabre\\CopyEtagHeaderPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/CopyEtagHeaderPlugin.php', |
|
102 | + 'OCA\\DAV\\Connector\\Sabre\\CustomPropertiesBackend' => __DIR__.'/..'.'/../lib/Connector/Sabre/CustomPropertiesBackend.php', |
|
103 | + 'OCA\\DAV\\Connector\\Sabre\\DavAclPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/DavAclPlugin.php', |
|
104 | + 'OCA\\DAV\\Connector\\Sabre\\Directory' => __DIR__.'/..'.'/../lib/Connector/Sabre/Directory.php', |
|
105 | + 'OCA\\DAV\\Connector\\Sabre\\DummyGetResponsePlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/DummyGetResponsePlugin.php', |
|
106 | + 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/ExceptionLoggerPlugin.php', |
|
107 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\EntityTooLarge' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/EntityTooLarge.php', |
|
108 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/FileLocked.php', |
|
109 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/Forbidden.php', |
|
110 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/InvalidPath.php', |
|
111 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\PasswordLoginForbidden' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/PasswordLoginForbidden.php', |
|
112 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\UnsupportedMediaType' => __DIR__.'/..'.'/../lib/Connector/Sabre/Exception/UnsupportedMediaType.php', |
|
113 | + 'OCA\\DAV\\Connector\\Sabre\\FakeLockerPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/FakeLockerPlugin.php', |
|
114 | + 'OCA\\DAV\\Connector\\Sabre\\File' => __DIR__.'/..'.'/../lib/Connector/Sabre/File.php', |
|
115 | + 'OCA\\DAV\\Connector\\Sabre\\FilesPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/FilesPlugin.php', |
|
116 | + 'OCA\\DAV\\Connector\\Sabre\\FilesReportPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/FilesReportPlugin.php', |
|
117 | + 'OCA\\DAV\\Connector\\Sabre\\LockPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/LockPlugin.php', |
|
118 | + 'OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/MaintenancePlugin.php', |
|
119 | + 'OCA\\DAV\\Connector\\Sabre\\Node' => __DIR__.'/..'.'/../lib/Connector/Sabre/Node.php', |
|
120 | + 'OCA\\DAV\\Connector\\Sabre\\ObjectTree' => __DIR__.'/..'.'/../lib/Connector/Sabre/ObjectTree.php', |
|
121 | + 'OCA\\DAV\\Connector\\Sabre\\Principal' => __DIR__.'/..'.'/../lib/Connector/Sabre/Principal.php', |
|
122 | + 'OCA\\DAV\\Connector\\Sabre\\QuotaPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/QuotaPlugin.php', |
|
123 | + 'OCA\\DAV\\Connector\\Sabre\\Server' => __DIR__.'/..'.'/../lib/Connector/Sabre/Server.php', |
|
124 | + 'OCA\\DAV\\Connector\\Sabre\\ServerFactory' => __DIR__.'/..'.'/../lib/Connector/Sabre/ServerFactory.php', |
|
125 | + 'OCA\\DAV\\Connector\\Sabre\\ShareTypeList' => __DIR__.'/..'.'/../lib/Connector/Sabre/ShareTypeList.php', |
|
126 | + 'OCA\\DAV\\Connector\\Sabre\\SharesPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/SharesPlugin.php', |
|
127 | + 'OCA\\DAV\\Connector\\Sabre\\TagList' => __DIR__.'/..'.'/../lib/Connector/Sabre/TagList.php', |
|
128 | + 'OCA\\DAV\\Connector\\Sabre\\TagsPlugin' => __DIR__.'/..'.'/../lib/Connector/Sabre/TagsPlugin.php', |
|
129 | + 'OCA\\DAV\\Controller\\BirthdayCalendarController' => __DIR__.'/..'.'/../lib/Controller/BirthdayCalendarController.php', |
|
130 | + 'OCA\\DAV\\DAV\\CustomPropertiesBackend' => __DIR__.'/..'.'/../lib/DAV/CustomPropertiesBackend.php', |
|
131 | + 'OCA\\DAV\\DAV\\GroupPrincipalBackend' => __DIR__.'/..'.'/../lib/DAV/GroupPrincipalBackend.php', |
|
132 | + 'OCA\\DAV\\DAV\\PublicAuth' => __DIR__.'/..'.'/../lib/DAV/PublicAuth.php', |
|
133 | + 'OCA\\DAV\\DAV\\Sharing\\Backend' => __DIR__.'/..'.'/../lib/DAV/Sharing/Backend.php', |
|
134 | + 'OCA\\DAV\\DAV\\Sharing\\IShareable' => __DIR__.'/..'.'/../lib/DAV/Sharing/IShareable.php', |
|
135 | + 'OCA\\DAV\\DAV\\Sharing\\Plugin' => __DIR__.'/..'.'/../lib/DAV/Sharing/Plugin.php', |
|
136 | + 'OCA\\DAV\\DAV\\Sharing\\Xml\\Invite' => __DIR__.'/..'.'/../lib/DAV/Sharing/Xml/Invite.php', |
|
137 | + 'OCA\\DAV\\DAV\\Sharing\\Xml\\ShareRequest' => __DIR__.'/..'.'/../lib/DAV/Sharing/Xml/ShareRequest.php', |
|
138 | + 'OCA\\DAV\\DAV\\SystemPrincipalBackend' => __DIR__.'/..'.'/../lib/DAV/SystemPrincipalBackend.php', |
|
139 | + 'OCA\\DAV\\Files\\BrowserErrorPagePlugin' => __DIR__.'/..'.'/../lib/Files/BrowserErrorPagePlugin.php', |
|
140 | + 'OCA\\DAV\\Files\\FileSearchBackend' => __DIR__.'/..'.'/../lib/Files/FileSearchBackend.php', |
|
141 | + 'OCA\\DAV\\Files\\FilesHome' => __DIR__.'/..'.'/../lib/Files/FilesHome.php', |
|
142 | + 'OCA\\DAV\\Files\\LazySearchBackend' => __DIR__.'/..'.'/../lib/Files/LazySearchBackend.php', |
|
143 | + 'OCA\\DAV\\Files\\RootCollection' => __DIR__.'/..'.'/../lib/Files/RootCollection.php', |
|
144 | + 'OCA\\DAV\\Files\\Sharing\\FilesDropPlugin' => __DIR__.'/..'.'/../lib/Files/Sharing/FilesDropPlugin.php', |
|
145 | + 'OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin' => __DIR__.'/..'.'/../lib/Files/Sharing/PublicLinkCheckPlugin.php', |
|
146 | + 'OCA\\DAV\\HookManager' => __DIR__.'/..'.'/../lib/HookManager.php', |
|
147 | + 'OCA\\DAV\\Migration\\BuildCalendarSearchIndex' => __DIR__.'/..'.'/../lib/Migration/BuildCalendarSearchIndex.php', |
|
148 | + 'OCA\\DAV\\Migration\\BuildCalendarSearchIndexBackgroundJob' => __DIR__.'/..'.'/../lib/Migration/BuildCalendarSearchIndexBackgroundJob.php', |
|
149 | + 'OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue' => __DIR__.'/..'.'/../lib/Migration/CalDAVRemoveEmptyValue.php', |
|
150 | + 'OCA\\DAV\\Migration\\FixBirthdayCalendarComponent' => __DIR__.'/..'.'/../lib/Migration/FixBirthdayCalendarComponent.php', |
|
151 | + 'OCA\\DAV\\Migration\\RemoveClassifiedEventActivity' => __DIR__.'/..'.'/../lib/Migration/RemoveClassifiedEventActivity.php', |
|
152 | + 'OCA\\DAV\\Migration\\Version1004Date20170825134824' => __DIR__.'/..'.'/../lib/Migration/Version1004Date20170825134824.php', |
|
153 | + 'OCA\\DAV\\Migration\\Version1004Date20170919104507' => __DIR__.'/..'.'/../lib/Migration/Version1004Date20170919104507.php', |
|
154 | + 'OCA\\DAV\\Migration\\Version1004Date20170924124212' => __DIR__.'/..'.'/../lib/Migration/Version1004Date20170924124212.php', |
|
155 | + 'OCA\\DAV\\Migration\\Version1004Date20170926103422' => __DIR__.'/..'.'/../lib/Migration/Version1004Date20170926103422.php', |
|
156 | + 'OCA\\DAV\\RootCollection' => __DIR__.'/..'.'/../lib/RootCollection.php', |
|
157 | + 'OCA\\DAV\\Server' => __DIR__.'/..'.'/../lib/Server.php', |
|
158 | + 'OCA\\DAV\\Settings\\CalDAVSettings' => __DIR__.'/..'.'/../lib/Settings/CalDAVSettings.php', |
|
159 | + 'OCA\\DAV\\SystemTag\\SystemTagMappingNode' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagMappingNode.php', |
|
160 | + 'OCA\\DAV\\SystemTag\\SystemTagNode' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagNode.php', |
|
161 | + 'OCA\\DAV\\SystemTag\\SystemTagPlugin' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagPlugin.php', |
|
162 | + 'OCA\\DAV\\SystemTag\\SystemTagsByIdCollection' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagsByIdCollection.php', |
|
163 | + 'OCA\\DAV\\SystemTag\\SystemTagsObjectMappingCollection' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagsObjectMappingCollection.php', |
|
164 | + 'OCA\\DAV\\SystemTag\\SystemTagsObjectTypeCollection' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagsObjectTypeCollection.php', |
|
165 | + 'OCA\\DAV\\SystemTag\\SystemTagsRelationsCollection' => __DIR__.'/..'.'/../lib/SystemTag/SystemTagsRelationsCollection.php', |
|
166 | + 'OCA\\DAV\\Upload\\AssemblyStream' => __DIR__.'/..'.'/../lib/Upload/AssemblyStream.php', |
|
167 | + 'OCA\\DAV\\Upload\\ChunkingPlugin' => __DIR__.'/..'.'/../lib/Upload/ChunkingPlugin.php', |
|
168 | + 'OCA\\DAV\\Upload\\FutureFile' => __DIR__.'/..'.'/../lib/Upload/FutureFile.php', |
|
169 | + 'OCA\\DAV\\Upload\\RootCollection' => __DIR__.'/..'.'/../lib/Upload/RootCollection.php', |
|
170 | + 'OCA\\DAV\\Upload\\UploadFolder' => __DIR__.'/..'.'/../lib/Upload/UploadFolder.php', |
|
171 | + 'OCA\\DAV\\Upload\\UploadHome' => __DIR__.'/..'.'/../lib/Upload/UploadHome.php', |
|
172 | 172 | ); |
173 | 173 | |
174 | 174 | public static function getInitializer(ClassLoader $loader) |
175 | 175 | { |
176 | - return \Closure::bind(function () use ($loader) { |
|
176 | + return \Closure::bind(function() use ($loader) { |
|
177 | 177 | $loader->prefixLengthsPsr4 = ComposerStaticInitDAV::$prefixLengthsPsr4; |
178 | 178 | $loader->prefixDirsPsr4 = ComposerStaticInitDAV::$prefixDirsPsr4; |
179 | 179 | $loader->classMap = ComposerStaticInitDAV::$classMap; |
@@ -6,152 +6,152 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\DAV\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
10 | - 'OCA\\DAV\\AppInfo\\PluginManager' => $baseDir . '/../lib/AppInfo/PluginManager.php', |
|
11 | - 'OCA\\DAV\\Avatars\\AvatarHome' => $baseDir . '/../lib/Avatars/AvatarHome.php', |
|
12 | - 'OCA\\DAV\\Avatars\\AvatarNode' => $baseDir . '/../lib/Avatars/AvatarNode.php', |
|
13 | - 'OCA\\DAV\\Avatars\\RootCollection' => $baseDir . '/../lib/Avatars/RootCollection.php', |
|
14 | - 'OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob' => $baseDir . '/../lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php', |
|
15 | - 'OCA\\DAV\\CalDAV\\Activity\\Backend' => $baseDir . '/../lib/CalDAV/Activity/Backend.php', |
|
16 | - 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Calendar' => $baseDir . '/../lib/CalDAV/Activity/Filter/Calendar.php', |
|
17 | - 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Todo' => $baseDir . '/../lib/CalDAV/Activity/Filter/Todo.php', |
|
18 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Base' => $baseDir . '/../lib/CalDAV/Activity/Provider/Base.php', |
|
19 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Calendar' => $baseDir . '/../lib/CalDAV/Activity/Provider/Calendar.php', |
|
20 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Event' => $baseDir . '/../lib/CalDAV/Activity/Provider/Event.php', |
|
21 | - 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Todo' => $baseDir . '/../lib/CalDAV/Activity/Provider/Todo.php', |
|
22 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Calendar' => $baseDir . '/../lib/CalDAV/Activity/Setting/Calendar.php', |
|
23 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Event' => $baseDir . '/../lib/CalDAV/Activity/Setting/Event.php', |
|
24 | - 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Todo' => $baseDir . '/../lib/CalDAV/Activity/Setting/Todo.php', |
|
25 | - 'OCA\\DAV\\CalDAV\\BirthdayCalendar\\EnablePlugin' => $baseDir . '/../lib/CalDAV/BirthdayCalendar/EnablePlugin.php', |
|
26 | - 'OCA\\DAV\\CalDAV\\BirthdayService' => $baseDir . '/../lib/CalDAV/BirthdayService.php', |
|
27 | - 'OCA\\DAV\\CalDAV\\CalDavBackend' => $baseDir . '/../lib/CalDAV/CalDavBackend.php', |
|
28 | - 'OCA\\DAV\\CalDAV\\Calendar' => $baseDir . '/../lib/CalDAV/Calendar.php', |
|
29 | - 'OCA\\DAV\\CalDAV\\CalendarHome' => $baseDir . '/../lib/CalDAV/CalendarHome.php', |
|
30 | - 'OCA\\DAV\\CalDAV\\CalendarImpl' => $baseDir . '/../lib/CalDAV/CalendarImpl.php', |
|
31 | - 'OCA\\DAV\\CalDAV\\CalendarManager' => $baseDir . '/../lib/CalDAV/CalendarManager.php', |
|
32 | - 'OCA\\DAV\\CalDAV\\CalendarObject' => $baseDir . '/../lib/CalDAV/CalendarObject.php', |
|
33 | - 'OCA\\DAV\\CalDAV\\CalendarRoot' => $baseDir . '/../lib/CalDAV/CalendarRoot.php', |
|
34 | - 'OCA\\DAV\\CalDAV\\Outbox' => $baseDir . '/../lib/CalDAV/Outbox.php', |
|
35 | - 'OCA\\DAV\\CalDAV\\Plugin' => $baseDir . '/../lib/CalDAV/Plugin.php', |
|
36 | - 'OCA\\DAV\\CalDAV\\Principal\\Collection' => $baseDir . '/../lib/CalDAV/Principal/Collection.php', |
|
37 | - 'OCA\\DAV\\CalDAV\\Principal\\User' => $baseDir . '/../lib/CalDAV/Principal/User.php', |
|
38 | - 'OCA\\DAV\\CalDAV\\PublicCalendar' => $baseDir . '/../lib/CalDAV/PublicCalendar.php', |
|
39 | - 'OCA\\DAV\\CalDAV\\PublicCalendarObject' => $baseDir . '/../lib/CalDAV/PublicCalendarObject.php', |
|
40 | - 'OCA\\DAV\\CalDAV\\PublicCalendarRoot' => $baseDir . '/../lib/CalDAV/PublicCalendarRoot.php', |
|
41 | - 'OCA\\DAV\\CalDAV\\Publishing\\PublishPlugin' => $baseDir . '/../lib/CalDAV/Publishing/PublishPlugin.php', |
|
42 | - 'OCA\\DAV\\CalDAV\\Publishing\\Xml\\Publisher' => $baseDir . '/../lib/CalDAV/Publishing/Xml/Publisher.php', |
|
43 | - 'OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin' => $baseDir . '/../lib/CalDAV/Schedule/IMipPlugin.php', |
|
44 | - 'OCA\\DAV\\CalDAV\\Schedule\\Plugin' => $baseDir . '/../lib/CalDAV/Schedule/Plugin.php', |
|
45 | - 'OCA\\DAV\\CalDAV\\Search\\SearchPlugin' => $baseDir . '/../lib/CalDAV/Search/SearchPlugin.php', |
|
46 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\CompFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/CompFilter.php', |
|
47 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\LimitFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/LimitFilter.php', |
|
48 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\OffsetFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/OffsetFilter.php', |
|
49 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\ParamFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/ParamFilter.php', |
|
50 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/PropFilter.php', |
|
51 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => $baseDir . '/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php', |
|
52 | - 'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => $baseDir . '/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php', |
|
53 | - 'OCA\\DAV\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
54 | - 'OCA\\DAV\\CardDAV\\AddressBook' => $baseDir . '/../lib/CardDAV/AddressBook.php', |
|
55 | - 'OCA\\DAV\\CardDAV\\AddressBookImpl' => $baseDir . '/../lib/CardDAV/AddressBookImpl.php', |
|
56 | - 'OCA\\DAV\\CardDAV\\AddressBookRoot' => $baseDir . '/../lib/CardDAV/AddressBookRoot.php', |
|
57 | - 'OCA\\DAV\\CardDAV\\CardDavBackend' => $baseDir . '/../lib/CardDAV/CardDavBackend.php', |
|
58 | - 'OCA\\DAV\\CardDAV\\ContactsManager' => $baseDir . '/../lib/CardDAV/ContactsManager.php', |
|
59 | - 'OCA\\DAV\\CardDAV\\Converter' => $baseDir . '/../lib/CardDAV/Converter.php', |
|
60 | - 'OCA\\DAV\\CardDAV\\ImageExportPlugin' => $baseDir . '/../lib/CardDAV/ImageExportPlugin.php', |
|
61 | - 'OCA\\DAV\\CardDAV\\PhotoCache' => $baseDir . '/../lib/CardDAV/PhotoCache.php', |
|
62 | - 'OCA\\DAV\\CardDAV\\Plugin' => $baseDir . '/../lib/CardDAV/Plugin.php', |
|
63 | - 'OCA\\DAV\\CardDAV\\SyncService' => $baseDir . '/../lib/CardDAV/SyncService.php', |
|
64 | - 'OCA\\DAV\\CardDAV\\UserAddressBooks' => $baseDir . '/../lib/CardDAV/UserAddressBooks.php', |
|
65 | - 'OCA\\DAV\\CardDAV\\Xml\\Groups' => $baseDir . '/../lib/CardDAV/Xml/Groups.php', |
|
66 | - 'OCA\\DAV\\Command\\CreateAddressBook' => $baseDir . '/../lib/Command/CreateAddressBook.php', |
|
67 | - 'OCA\\DAV\\Command\\CreateCalendar' => $baseDir . '/../lib/Command/CreateCalendar.php', |
|
68 | - 'OCA\\DAV\\Command\\RemoveInvalidShares' => $baseDir . '/../lib/Command/RemoveInvalidShares.php', |
|
69 | - 'OCA\\DAV\\Command\\SyncBirthdayCalendar' => $baseDir . '/../lib/Command/SyncBirthdayCalendar.php', |
|
70 | - 'OCA\\DAV\\Command\\SyncSystemAddressBook' => $baseDir . '/../lib/Command/SyncSystemAddressBook.php', |
|
71 | - 'OCA\\DAV\\Comments\\CommentNode' => $baseDir . '/../lib/Comments/CommentNode.php', |
|
72 | - 'OCA\\DAV\\Comments\\CommentsPlugin' => $baseDir . '/../lib/Comments/CommentsPlugin.php', |
|
73 | - 'OCA\\DAV\\Comments\\EntityCollection' => $baseDir . '/../lib/Comments/EntityCollection.php', |
|
74 | - 'OCA\\DAV\\Comments\\EntityTypeCollection' => $baseDir . '/../lib/Comments/EntityTypeCollection.php', |
|
75 | - 'OCA\\DAV\\Comments\\RootCollection' => $baseDir . '/../lib/Comments/RootCollection.php', |
|
76 | - 'OCA\\DAV\\Connector\\LegacyDAVACL' => $baseDir . '/../lib/Connector/LegacyDAVACL.php', |
|
77 | - 'OCA\\DAV\\Connector\\PublicAuth' => $baseDir . '/../lib/Connector/PublicAuth.php', |
|
78 | - 'OCA\\DAV\\Connector\\Sabre\\AnonymousOptionsPlugin' => $baseDir . '/../lib/Connector/Sabre/AnonymousOptionsPlugin.php', |
|
79 | - 'OCA\\DAV\\Connector\\Sabre\\AppEnabledPlugin' => $baseDir . '/../lib/Connector/Sabre/AppEnabledPlugin.php', |
|
80 | - 'OCA\\DAV\\Connector\\Sabre\\Auth' => $baseDir . '/../lib/Connector/Sabre/Auth.php', |
|
81 | - 'OCA\\DAV\\Connector\\Sabre\\BearerAuth' => $baseDir . '/../lib/Connector/Sabre/BearerAuth.php', |
|
82 | - 'OCA\\DAV\\Connector\\Sabre\\BlockLegacyClientPlugin' => $baseDir . '/../lib/Connector/Sabre/BlockLegacyClientPlugin.php', |
|
83 | - 'OCA\\DAV\\Connector\\Sabre\\CachingTree' => $baseDir . '/../lib/Connector/Sabre/CachingTree.php', |
|
84 | - 'OCA\\DAV\\Connector\\Sabre\\ChecksumList' => $baseDir . '/../lib/Connector/Sabre/ChecksumList.php', |
|
85 | - 'OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin' => $baseDir . '/../lib/Connector/Sabre/CommentPropertiesPlugin.php', |
|
86 | - 'OCA\\DAV\\Connector\\Sabre\\CopyEtagHeaderPlugin' => $baseDir . '/../lib/Connector/Sabre/CopyEtagHeaderPlugin.php', |
|
87 | - 'OCA\\DAV\\Connector\\Sabre\\CustomPropertiesBackend' => $baseDir . '/../lib/Connector/Sabre/CustomPropertiesBackend.php', |
|
88 | - 'OCA\\DAV\\Connector\\Sabre\\DavAclPlugin' => $baseDir . '/../lib/Connector/Sabre/DavAclPlugin.php', |
|
89 | - 'OCA\\DAV\\Connector\\Sabre\\Directory' => $baseDir . '/../lib/Connector/Sabre/Directory.php', |
|
90 | - 'OCA\\DAV\\Connector\\Sabre\\DummyGetResponsePlugin' => $baseDir . '/../lib/Connector/Sabre/DummyGetResponsePlugin.php', |
|
91 | - 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' => $baseDir . '/../lib/Connector/Sabre/ExceptionLoggerPlugin.php', |
|
92 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\EntityTooLarge' => $baseDir . '/../lib/Connector/Sabre/Exception/EntityTooLarge.php', |
|
93 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked' => $baseDir . '/../lib/Connector/Sabre/Exception/FileLocked.php', |
|
94 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden' => $baseDir . '/../lib/Connector/Sabre/Exception/Forbidden.php', |
|
95 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath' => $baseDir . '/../lib/Connector/Sabre/Exception/InvalidPath.php', |
|
96 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\PasswordLoginForbidden' => $baseDir . '/../lib/Connector/Sabre/Exception/PasswordLoginForbidden.php', |
|
97 | - 'OCA\\DAV\\Connector\\Sabre\\Exception\\UnsupportedMediaType' => $baseDir . '/../lib/Connector/Sabre/Exception/UnsupportedMediaType.php', |
|
98 | - 'OCA\\DAV\\Connector\\Sabre\\FakeLockerPlugin' => $baseDir . '/../lib/Connector/Sabre/FakeLockerPlugin.php', |
|
99 | - 'OCA\\DAV\\Connector\\Sabre\\File' => $baseDir . '/../lib/Connector/Sabre/File.php', |
|
100 | - 'OCA\\DAV\\Connector\\Sabre\\FilesPlugin' => $baseDir . '/../lib/Connector/Sabre/FilesPlugin.php', |
|
101 | - 'OCA\\DAV\\Connector\\Sabre\\FilesReportPlugin' => $baseDir . '/../lib/Connector/Sabre/FilesReportPlugin.php', |
|
102 | - 'OCA\\DAV\\Connector\\Sabre\\LockPlugin' => $baseDir . '/../lib/Connector/Sabre/LockPlugin.php', |
|
103 | - 'OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin' => $baseDir . '/../lib/Connector/Sabre/MaintenancePlugin.php', |
|
104 | - 'OCA\\DAV\\Connector\\Sabre\\Node' => $baseDir . '/../lib/Connector/Sabre/Node.php', |
|
105 | - 'OCA\\DAV\\Connector\\Sabre\\ObjectTree' => $baseDir . '/../lib/Connector/Sabre/ObjectTree.php', |
|
106 | - 'OCA\\DAV\\Connector\\Sabre\\Principal' => $baseDir . '/../lib/Connector/Sabre/Principal.php', |
|
107 | - 'OCA\\DAV\\Connector\\Sabre\\QuotaPlugin' => $baseDir . '/../lib/Connector/Sabre/QuotaPlugin.php', |
|
108 | - 'OCA\\DAV\\Connector\\Sabre\\Server' => $baseDir . '/../lib/Connector/Sabre/Server.php', |
|
109 | - 'OCA\\DAV\\Connector\\Sabre\\ServerFactory' => $baseDir . '/../lib/Connector/Sabre/ServerFactory.php', |
|
110 | - 'OCA\\DAV\\Connector\\Sabre\\ShareTypeList' => $baseDir . '/../lib/Connector/Sabre/ShareTypeList.php', |
|
111 | - 'OCA\\DAV\\Connector\\Sabre\\SharesPlugin' => $baseDir . '/../lib/Connector/Sabre/SharesPlugin.php', |
|
112 | - 'OCA\\DAV\\Connector\\Sabre\\TagList' => $baseDir . '/../lib/Connector/Sabre/TagList.php', |
|
113 | - 'OCA\\DAV\\Connector\\Sabre\\TagsPlugin' => $baseDir . '/../lib/Connector/Sabre/TagsPlugin.php', |
|
114 | - 'OCA\\DAV\\Controller\\BirthdayCalendarController' => $baseDir . '/../lib/Controller/BirthdayCalendarController.php', |
|
115 | - 'OCA\\DAV\\DAV\\CustomPropertiesBackend' => $baseDir . '/../lib/DAV/CustomPropertiesBackend.php', |
|
116 | - 'OCA\\DAV\\DAV\\GroupPrincipalBackend' => $baseDir . '/../lib/DAV/GroupPrincipalBackend.php', |
|
117 | - 'OCA\\DAV\\DAV\\PublicAuth' => $baseDir . '/../lib/DAV/PublicAuth.php', |
|
118 | - 'OCA\\DAV\\DAV\\Sharing\\Backend' => $baseDir . '/../lib/DAV/Sharing/Backend.php', |
|
119 | - 'OCA\\DAV\\DAV\\Sharing\\IShareable' => $baseDir . '/../lib/DAV/Sharing/IShareable.php', |
|
120 | - 'OCA\\DAV\\DAV\\Sharing\\Plugin' => $baseDir . '/../lib/DAV/Sharing/Plugin.php', |
|
121 | - 'OCA\\DAV\\DAV\\Sharing\\Xml\\Invite' => $baseDir . '/../lib/DAV/Sharing/Xml/Invite.php', |
|
122 | - 'OCA\\DAV\\DAV\\Sharing\\Xml\\ShareRequest' => $baseDir . '/../lib/DAV/Sharing/Xml/ShareRequest.php', |
|
123 | - 'OCA\\DAV\\DAV\\SystemPrincipalBackend' => $baseDir . '/../lib/DAV/SystemPrincipalBackend.php', |
|
124 | - 'OCA\\DAV\\Files\\BrowserErrorPagePlugin' => $baseDir . '/../lib/Files/BrowserErrorPagePlugin.php', |
|
125 | - 'OCA\\DAV\\Files\\FileSearchBackend' => $baseDir . '/../lib/Files/FileSearchBackend.php', |
|
126 | - 'OCA\\DAV\\Files\\FilesHome' => $baseDir . '/../lib/Files/FilesHome.php', |
|
127 | - 'OCA\\DAV\\Files\\LazySearchBackend' => $baseDir . '/../lib/Files/LazySearchBackend.php', |
|
128 | - 'OCA\\DAV\\Files\\RootCollection' => $baseDir . '/../lib/Files/RootCollection.php', |
|
129 | - 'OCA\\DAV\\Files\\Sharing\\FilesDropPlugin' => $baseDir . '/../lib/Files/Sharing/FilesDropPlugin.php', |
|
130 | - 'OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin' => $baseDir . '/../lib/Files/Sharing/PublicLinkCheckPlugin.php', |
|
131 | - 'OCA\\DAV\\HookManager' => $baseDir . '/../lib/HookManager.php', |
|
132 | - 'OCA\\DAV\\Migration\\BuildCalendarSearchIndex' => $baseDir . '/../lib/Migration/BuildCalendarSearchIndex.php', |
|
133 | - 'OCA\\DAV\\Migration\\BuildCalendarSearchIndexBackgroundJob' => $baseDir . '/../lib/Migration/BuildCalendarSearchIndexBackgroundJob.php', |
|
134 | - 'OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue' => $baseDir . '/../lib/Migration/CalDAVRemoveEmptyValue.php', |
|
135 | - 'OCA\\DAV\\Migration\\FixBirthdayCalendarComponent' => $baseDir . '/../lib/Migration/FixBirthdayCalendarComponent.php', |
|
136 | - 'OCA\\DAV\\Migration\\RemoveClassifiedEventActivity' => $baseDir . '/../lib/Migration/RemoveClassifiedEventActivity.php', |
|
137 | - 'OCA\\DAV\\Migration\\Version1004Date20170825134824' => $baseDir . '/../lib/Migration/Version1004Date20170825134824.php', |
|
138 | - 'OCA\\DAV\\Migration\\Version1004Date20170919104507' => $baseDir . '/../lib/Migration/Version1004Date20170919104507.php', |
|
139 | - 'OCA\\DAV\\Migration\\Version1004Date20170924124212' => $baseDir . '/../lib/Migration/Version1004Date20170924124212.php', |
|
140 | - 'OCA\\DAV\\Migration\\Version1004Date20170926103422' => $baseDir . '/../lib/Migration/Version1004Date20170926103422.php', |
|
141 | - 'OCA\\DAV\\RootCollection' => $baseDir . '/../lib/RootCollection.php', |
|
142 | - 'OCA\\DAV\\Server' => $baseDir . '/../lib/Server.php', |
|
143 | - 'OCA\\DAV\\Settings\\CalDAVSettings' => $baseDir . '/../lib/Settings/CalDAVSettings.php', |
|
144 | - 'OCA\\DAV\\SystemTag\\SystemTagMappingNode' => $baseDir . '/../lib/SystemTag/SystemTagMappingNode.php', |
|
145 | - 'OCA\\DAV\\SystemTag\\SystemTagNode' => $baseDir . '/../lib/SystemTag/SystemTagNode.php', |
|
146 | - 'OCA\\DAV\\SystemTag\\SystemTagPlugin' => $baseDir . '/../lib/SystemTag/SystemTagPlugin.php', |
|
147 | - 'OCA\\DAV\\SystemTag\\SystemTagsByIdCollection' => $baseDir . '/../lib/SystemTag/SystemTagsByIdCollection.php', |
|
148 | - 'OCA\\DAV\\SystemTag\\SystemTagsObjectMappingCollection' => $baseDir . '/../lib/SystemTag/SystemTagsObjectMappingCollection.php', |
|
149 | - 'OCA\\DAV\\SystemTag\\SystemTagsObjectTypeCollection' => $baseDir . '/../lib/SystemTag/SystemTagsObjectTypeCollection.php', |
|
150 | - 'OCA\\DAV\\SystemTag\\SystemTagsRelationsCollection' => $baseDir . '/../lib/SystemTag/SystemTagsRelationsCollection.php', |
|
151 | - 'OCA\\DAV\\Upload\\AssemblyStream' => $baseDir . '/../lib/Upload/AssemblyStream.php', |
|
152 | - 'OCA\\DAV\\Upload\\ChunkingPlugin' => $baseDir . '/../lib/Upload/ChunkingPlugin.php', |
|
153 | - 'OCA\\DAV\\Upload\\FutureFile' => $baseDir . '/../lib/Upload/FutureFile.php', |
|
154 | - 'OCA\\DAV\\Upload\\RootCollection' => $baseDir . '/../lib/Upload/RootCollection.php', |
|
155 | - 'OCA\\DAV\\Upload\\UploadFolder' => $baseDir . '/../lib/Upload/UploadFolder.php', |
|
156 | - 'OCA\\DAV\\Upload\\UploadHome' => $baseDir . '/../lib/Upload/UploadHome.php', |
|
9 | + 'OCA\\DAV\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
10 | + 'OCA\\DAV\\AppInfo\\PluginManager' => $baseDir.'/../lib/AppInfo/PluginManager.php', |
|
11 | + 'OCA\\DAV\\Avatars\\AvatarHome' => $baseDir.'/../lib/Avatars/AvatarHome.php', |
|
12 | + 'OCA\\DAV\\Avatars\\AvatarNode' => $baseDir.'/../lib/Avatars/AvatarNode.php', |
|
13 | + 'OCA\\DAV\\Avatars\\RootCollection' => $baseDir.'/../lib/Avatars/RootCollection.php', |
|
14 | + 'OCA\\DAV\\BackgroundJob\\GenerateBirthdayCalendarBackgroundJob' => $baseDir.'/../lib/BackgroundJob/GenerateBirthdayCalendarBackgroundJob.php', |
|
15 | + 'OCA\\DAV\\CalDAV\\Activity\\Backend' => $baseDir.'/../lib/CalDAV/Activity/Backend.php', |
|
16 | + 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Calendar' => $baseDir.'/../lib/CalDAV/Activity/Filter/Calendar.php', |
|
17 | + 'OCA\\DAV\\CalDAV\\Activity\\Filter\\Todo' => $baseDir.'/../lib/CalDAV/Activity/Filter/Todo.php', |
|
18 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Base' => $baseDir.'/../lib/CalDAV/Activity/Provider/Base.php', |
|
19 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Calendar' => $baseDir.'/../lib/CalDAV/Activity/Provider/Calendar.php', |
|
20 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Event' => $baseDir.'/../lib/CalDAV/Activity/Provider/Event.php', |
|
21 | + 'OCA\\DAV\\CalDAV\\Activity\\Provider\\Todo' => $baseDir.'/../lib/CalDAV/Activity/Provider/Todo.php', |
|
22 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Calendar' => $baseDir.'/../lib/CalDAV/Activity/Setting/Calendar.php', |
|
23 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Event' => $baseDir.'/../lib/CalDAV/Activity/Setting/Event.php', |
|
24 | + 'OCA\\DAV\\CalDAV\\Activity\\Setting\\Todo' => $baseDir.'/../lib/CalDAV/Activity/Setting/Todo.php', |
|
25 | + 'OCA\\DAV\\CalDAV\\BirthdayCalendar\\EnablePlugin' => $baseDir.'/../lib/CalDAV/BirthdayCalendar/EnablePlugin.php', |
|
26 | + 'OCA\\DAV\\CalDAV\\BirthdayService' => $baseDir.'/../lib/CalDAV/BirthdayService.php', |
|
27 | + 'OCA\\DAV\\CalDAV\\CalDavBackend' => $baseDir.'/../lib/CalDAV/CalDavBackend.php', |
|
28 | + 'OCA\\DAV\\CalDAV\\Calendar' => $baseDir.'/../lib/CalDAV/Calendar.php', |
|
29 | + 'OCA\\DAV\\CalDAV\\CalendarHome' => $baseDir.'/../lib/CalDAV/CalendarHome.php', |
|
30 | + 'OCA\\DAV\\CalDAV\\CalendarImpl' => $baseDir.'/../lib/CalDAV/CalendarImpl.php', |
|
31 | + 'OCA\\DAV\\CalDAV\\CalendarManager' => $baseDir.'/../lib/CalDAV/CalendarManager.php', |
|
32 | + 'OCA\\DAV\\CalDAV\\CalendarObject' => $baseDir.'/../lib/CalDAV/CalendarObject.php', |
|
33 | + 'OCA\\DAV\\CalDAV\\CalendarRoot' => $baseDir.'/../lib/CalDAV/CalendarRoot.php', |
|
34 | + 'OCA\\DAV\\CalDAV\\Outbox' => $baseDir.'/../lib/CalDAV/Outbox.php', |
|
35 | + 'OCA\\DAV\\CalDAV\\Plugin' => $baseDir.'/../lib/CalDAV/Plugin.php', |
|
36 | + 'OCA\\DAV\\CalDAV\\Principal\\Collection' => $baseDir.'/../lib/CalDAV/Principal/Collection.php', |
|
37 | + 'OCA\\DAV\\CalDAV\\Principal\\User' => $baseDir.'/../lib/CalDAV/Principal/User.php', |
|
38 | + 'OCA\\DAV\\CalDAV\\PublicCalendar' => $baseDir.'/../lib/CalDAV/PublicCalendar.php', |
|
39 | + 'OCA\\DAV\\CalDAV\\PublicCalendarObject' => $baseDir.'/../lib/CalDAV/PublicCalendarObject.php', |
|
40 | + 'OCA\\DAV\\CalDAV\\PublicCalendarRoot' => $baseDir.'/../lib/CalDAV/PublicCalendarRoot.php', |
|
41 | + 'OCA\\DAV\\CalDAV\\Publishing\\PublishPlugin' => $baseDir.'/../lib/CalDAV/Publishing/PublishPlugin.php', |
|
42 | + 'OCA\\DAV\\CalDAV\\Publishing\\Xml\\Publisher' => $baseDir.'/../lib/CalDAV/Publishing/Xml/Publisher.php', |
|
43 | + 'OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin' => $baseDir.'/../lib/CalDAV/Schedule/IMipPlugin.php', |
|
44 | + 'OCA\\DAV\\CalDAV\\Schedule\\Plugin' => $baseDir.'/../lib/CalDAV/Schedule/Plugin.php', |
|
45 | + 'OCA\\DAV\\CalDAV\\Search\\SearchPlugin' => $baseDir.'/../lib/CalDAV/Search/SearchPlugin.php', |
|
46 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\CompFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/CompFilter.php', |
|
47 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\LimitFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/LimitFilter.php', |
|
48 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\OffsetFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/OffsetFilter.php', |
|
49 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\ParamFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/ParamFilter.php', |
|
50 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\PropFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/PropFilter.php', |
|
51 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Filter\\SearchTermFilter' => $baseDir.'/../lib/CalDAV/Search/Xml/Filter/SearchTermFilter.php', |
|
52 | + 'OCA\\DAV\\CalDAV\\Search\\Xml\\Request\\CalendarSearchReport' => $baseDir.'/../lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php', |
|
53 | + 'OCA\\DAV\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
54 | + 'OCA\\DAV\\CardDAV\\AddressBook' => $baseDir.'/../lib/CardDAV/AddressBook.php', |
|
55 | + 'OCA\\DAV\\CardDAV\\AddressBookImpl' => $baseDir.'/../lib/CardDAV/AddressBookImpl.php', |
|
56 | + 'OCA\\DAV\\CardDAV\\AddressBookRoot' => $baseDir.'/../lib/CardDAV/AddressBookRoot.php', |
|
57 | + 'OCA\\DAV\\CardDAV\\CardDavBackend' => $baseDir.'/../lib/CardDAV/CardDavBackend.php', |
|
58 | + 'OCA\\DAV\\CardDAV\\ContactsManager' => $baseDir.'/../lib/CardDAV/ContactsManager.php', |
|
59 | + 'OCA\\DAV\\CardDAV\\Converter' => $baseDir.'/../lib/CardDAV/Converter.php', |
|
60 | + 'OCA\\DAV\\CardDAV\\ImageExportPlugin' => $baseDir.'/../lib/CardDAV/ImageExportPlugin.php', |
|
61 | + 'OCA\\DAV\\CardDAV\\PhotoCache' => $baseDir.'/../lib/CardDAV/PhotoCache.php', |
|
62 | + 'OCA\\DAV\\CardDAV\\Plugin' => $baseDir.'/../lib/CardDAV/Plugin.php', |
|
63 | + 'OCA\\DAV\\CardDAV\\SyncService' => $baseDir.'/../lib/CardDAV/SyncService.php', |
|
64 | + 'OCA\\DAV\\CardDAV\\UserAddressBooks' => $baseDir.'/../lib/CardDAV/UserAddressBooks.php', |
|
65 | + 'OCA\\DAV\\CardDAV\\Xml\\Groups' => $baseDir.'/../lib/CardDAV/Xml/Groups.php', |
|
66 | + 'OCA\\DAV\\Command\\CreateAddressBook' => $baseDir.'/../lib/Command/CreateAddressBook.php', |
|
67 | + 'OCA\\DAV\\Command\\CreateCalendar' => $baseDir.'/../lib/Command/CreateCalendar.php', |
|
68 | + 'OCA\\DAV\\Command\\RemoveInvalidShares' => $baseDir.'/../lib/Command/RemoveInvalidShares.php', |
|
69 | + 'OCA\\DAV\\Command\\SyncBirthdayCalendar' => $baseDir.'/../lib/Command/SyncBirthdayCalendar.php', |
|
70 | + 'OCA\\DAV\\Command\\SyncSystemAddressBook' => $baseDir.'/../lib/Command/SyncSystemAddressBook.php', |
|
71 | + 'OCA\\DAV\\Comments\\CommentNode' => $baseDir.'/../lib/Comments/CommentNode.php', |
|
72 | + 'OCA\\DAV\\Comments\\CommentsPlugin' => $baseDir.'/../lib/Comments/CommentsPlugin.php', |
|
73 | + 'OCA\\DAV\\Comments\\EntityCollection' => $baseDir.'/../lib/Comments/EntityCollection.php', |
|
74 | + 'OCA\\DAV\\Comments\\EntityTypeCollection' => $baseDir.'/../lib/Comments/EntityTypeCollection.php', |
|
75 | + 'OCA\\DAV\\Comments\\RootCollection' => $baseDir.'/../lib/Comments/RootCollection.php', |
|
76 | + 'OCA\\DAV\\Connector\\LegacyDAVACL' => $baseDir.'/../lib/Connector/LegacyDAVACL.php', |
|
77 | + 'OCA\\DAV\\Connector\\PublicAuth' => $baseDir.'/../lib/Connector/PublicAuth.php', |
|
78 | + 'OCA\\DAV\\Connector\\Sabre\\AnonymousOptionsPlugin' => $baseDir.'/../lib/Connector/Sabre/AnonymousOptionsPlugin.php', |
|
79 | + 'OCA\\DAV\\Connector\\Sabre\\AppEnabledPlugin' => $baseDir.'/../lib/Connector/Sabre/AppEnabledPlugin.php', |
|
80 | + 'OCA\\DAV\\Connector\\Sabre\\Auth' => $baseDir.'/../lib/Connector/Sabre/Auth.php', |
|
81 | + 'OCA\\DAV\\Connector\\Sabre\\BearerAuth' => $baseDir.'/../lib/Connector/Sabre/BearerAuth.php', |
|
82 | + 'OCA\\DAV\\Connector\\Sabre\\BlockLegacyClientPlugin' => $baseDir.'/../lib/Connector/Sabre/BlockLegacyClientPlugin.php', |
|
83 | + 'OCA\\DAV\\Connector\\Sabre\\CachingTree' => $baseDir.'/../lib/Connector/Sabre/CachingTree.php', |
|
84 | + 'OCA\\DAV\\Connector\\Sabre\\ChecksumList' => $baseDir.'/../lib/Connector/Sabre/ChecksumList.php', |
|
85 | + 'OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin' => $baseDir.'/../lib/Connector/Sabre/CommentPropertiesPlugin.php', |
|
86 | + 'OCA\\DAV\\Connector\\Sabre\\CopyEtagHeaderPlugin' => $baseDir.'/../lib/Connector/Sabre/CopyEtagHeaderPlugin.php', |
|
87 | + 'OCA\\DAV\\Connector\\Sabre\\CustomPropertiesBackend' => $baseDir.'/../lib/Connector/Sabre/CustomPropertiesBackend.php', |
|
88 | + 'OCA\\DAV\\Connector\\Sabre\\DavAclPlugin' => $baseDir.'/../lib/Connector/Sabre/DavAclPlugin.php', |
|
89 | + 'OCA\\DAV\\Connector\\Sabre\\Directory' => $baseDir.'/../lib/Connector/Sabre/Directory.php', |
|
90 | + 'OCA\\DAV\\Connector\\Sabre\\DummyGetResponsePlugin' => $baseDir.'/../lib/Connector/Sabre/DummyGetResponsePlugin.php', |
|
91 | + 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' => $baseDir.'/../lib/Connector/Sabre/ExceptionLoggerPlugin.php', |
|
92 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\EntityTooLarge' => $baseDir.'/../lib/Connector/Sabre/Exception/EntityTooLarge.php', |
|
93 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked' => $baseDir.'/../lib/Connector/Sabre/Exception/FileLocked.php', |
|
94 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden' => $baseDir.'/../lib/Connector/Sabre/Exception/Forbidden.php', |
|
95 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath' => $baseDir.'/../lib/Connector/Sabre/Exception/InvalidPath.php', |
|
96 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\PasswordLoginForbidden' => $baseDir.'/../lib/Connector/Sabre/Exception/PasswordLoginForbidden.php', |
|
97 | + 'OCA\\DAV\\Connector\\Sabre\\Exception\\UnsupportedMediaType' => $baseDir.'/../lib/Connector/Sabre/Exception/UnsupportedMediaType.php', |
|
98 | + 'OCA\\DAV\\Connector\\Sabre\\FakeLockerPlugin' => $baseDir.'/../lib/Connector/Sabre/FakeLockerPlugin.php', |
|
99 | + 'OCA\\DAV\\Connector\\Sabre\\File' => $baseDir.'/../lib/Connector/Sabre/File.php', |
|
100 | + 'OCA\\DAV\\Connector\\Sabre\\FilesPlugin' => $baseDir.'/../lib/Connector/Sabre/FilesPlugin.php', |
|
101 | + 'OCA\\DAV\\Connector\\Sabre\\FilesReportPlugin' => $baseDir.'/../lib/Connector/Sabre/FilesReportPlugin.php', |
|
102 | + 'OCA\\DAV\\Connector\\Sabre\\LockPlugin' => $baseDir.'/../lib/Connector/Sabre/LockPlugin.php', |
|
103 | + 'OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin' => $baseDir.'/../lib/Connector/Sabre/MaintenancePlugin.php', |
|
104 | + 'OCA\\DAV\\Connector\\Sabre\\Node' => $baseDir.'/../lib/Connector/Sabre/Node.php', |
|
105 | + 'OCA\\DAV\\Connector\\Sabre\\ObjectTree' => $baseDir.'/../lib/Connector/Sabre/ObjectTree.php', |
|
106 | + 'OCA\\DAV\\Connector\\Sabre\\Principal' => $baseDir.'/../lib/Connector/Sabre/Principal.php', |
|
107 | + 'OCA\\DAV\\Connector\\Sabre\\QuotaPlugin' => $baseDir.'/../lib/Connector/Sabre/QuotaPlugin.php', |
|
108 | + 'OCA\\DAV\\Connector\\Sabre\\Server' => $baseDir.'/../lib/Connector/Sabre/Server.php', |
|
109 | + 'OCA\\DAV\\Connector\\Sabre\\ServerFactory' => $baseDir.'/../lib/Connector/Sabre/ServerFactory.php', |
|
110 | + 'OCA\\DAV\\Connector\\Sabre\\ShareTypeList' => $baseDir.'/../lib/Connector/Sabre/ShareTypeList.php', |
|
111 | + 'OCA\\DAV\\Connector\\Sabre\\SharesPlugin' => $baseDir.'/../lib/Connector/Sabre/SharesPlugin.php', |
|
112 | + 'OCA\\DAV\\Connector\\Sabre\\TagList' => $baseDir.'/../lib/Connector/Sabre/TagList.php', |
|
113 | + 'OCA\\DAV\\Connector\\Sabre\\TagsPlugin' => $baseDir.'/../lib/Connector/Sabre/TagsPlugin.php', |
|
114 | + 'OCA\\DAV\\Controller\\BirthdayCalendarController' => $baseDir.'/../lib/Controller/BirthdayCalendarController.php', |
|
115 | + 'OCA\\DAV\\DAV\\CustomPropertiesBackend' => $baseDir.'/../lib/DAV/CustomPropertiesBackend.php', |
|
116 | + 'OCA\\DAV\\DAV\\GroupPrincipalBackend' => $baseDir.'/../lib/DAV/GroupPrincipalBackend.php', |
|
117 | + 'OCA\\DAV\\DAV\\PublicAuth' => $baseDir.'/../lib/DAV/PublicAuth.php', |
|
118 | + 'OCA\\DAV\\DAV\\Sharing\\Backend' => $baseDir.'/../lib/DAV/Sharing/Backend.php', |
|
119 | + 'OCA\\DAV\\DAV\\Sharing\\IShareable' => $baseDir.'/../lib/DAV/Sharing/IShareable.php', |
|
120 | + 'OCA\\DAV\\DAV\\Sharing\\Plugin' => $baseDir.'/../lib/DAV/Sharing/Plugin.php', |
|
121 | + 'OCA\\DAV\\DAV\\Sharing\\Xml\\Invite' => $baseDir.'/../lib/DAV/Sharing/Xml/Invite.php', |
|
122 | + 'OCA\\DAV\\DAV\\Sharing\\Xml\\ShareRequest' => $baseDir.'/../lib/DAV/Sharing/Xml/ShareRequest.php', |
|
123 | + 'OCA\\DAV\\DAV\\SystemPrincipalBackend' => $baseDir.'/../lib/DAV/SystemPrincipalBackend.php', |
|
124 | + 'OCA\\DAV\\Files\\BrowserErrorPagePlugin' => $baseDir.'/../lib/Files/BrowserErrorPagePlugin.php', |
|
125 | + 'OCA\\DAV\\Files\\FileSearchBackend' => $baseDir.'/../lib/Files/FileSearchBackend.php', |
|
126 | + 'OCA\\DAV\\Files\\FilesHome' => $baseDir.'/../lib/Files/FilesHome.php', |
|
127 | + 'OCA\\DAV\\Files\\LazySearchBackend' => $baseDir.'/../lib/Files/LazySearchBackend.php', |
|
128 | + 'OCA\\DAV\\Files\\RootCollection' => $baseDir.'/../lib/Files/RootCollection.php', |
|
129 | + 'OCA\\DAV\\Files\\Sharing\\FilesDropPlugin' => $baseDir.'/../lib/Files/Sharing/FilesDropPlugin.php', |
|
130 | + 'OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin' => $baseDir.'/../lib/Files/Sharing/PublicLinkCheckPlugin.php', |
|
131 | + 'OCA\\DAV\\HookManager' => $baseDir.'/../lib/HookManager.php', |
|
132 | + 'OCA\\DAV\\Migration\\BuildCalendarSearchIndex' => $baseDir.'/../lib/Migration/BuildCalendarSearchIndex.php', |
|
133 | + 'OCA\\DAV\\Migration\\BuildCalendarSearchIndexBackgroundJob' => $baseDir.'/../lib/Migration/BuildCalendarSearchIndexBackgroundJob.php', |
|
134 | + 'OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue' => $baseDir.'/../lib/Migration/CalDAVRemoveEmptyValue.php', |
|
135 | + 'OCA\\DAV\\Migration\\FixBirthdayCalendarComponent' => $baseDir.'/../lib/Migration/FixBirthdayCalendarComponent.php', |
|
136 | + 'OCA\\DAV\\Migration\\RemoveClassifiedEventActivity' => $baseDir.'/../lib/Migration/RemoveClassifiedEventActivity.php', |
|
137 | + 'OCA\\DAV\\Migration\\Version1004Date20170825134824' => $baseDir.'/../lib/Migration/Version1004Date20170825134824.php', |
|
138 | + 'OCA\\DAV\\Migration\\Version1004Date20170919104507' => $baseDir.'/../lib/Migration/Version1004Date20170919104507.php', |
|
139 | + 'OCA\\DAV\\Migration\\Version1004Date20170924124212' => $baseDir.'/../lib/Migration/Version1004Date20170924124212.php', |
|
140 | + 'OCA\\DAV\\Migration\\Version1004Date20170926103422' => $baseDir.'/../lib/Migration/Version1004Date20170926103422.php', |
|
141 | + 'OCA\\DAV\\RootCollection' => $baseDir.'/../lib/RootCollection.php', |
|
142 | + 'OCA\\DAV\\Server' => $baseDir.'/../lib/Server.php', |
|
143 | + 'OCA\\DAV\\Settings\\CalDAVSettings' => $baseDir.'/../lib/Settings/CalDAVSettings.php', |
|
144 | + 'OCA\\DAV\\SystemTag\\SystemTagMappingNode' => $baseDir.'/../lib/SystemTag/SystemTagMappingNode.php', |
|
145 | + 'OCA\\DAV\\SystemTag\\SystemTagNode' => $baseDir.'/../lib/SystemTag/SystemTagNode.php', |
|
146 | + 'OCA\\DAV\\SystemTag\\SystemTagPlugin' => $baseDir.'/../lib/SystemTag/SystemTagPlugin.php', |
|
147 | + 'OCA\\DAV\\SystemTag\\SystemTagsByIdCollection' => $baseDir.'/../lib/SystemTag/SystemTagsByIdCollection.php', |
|
148 | + 'OCA\\DAV\\SystemTag\\SystemTagsObjectMappingCollection' => $baseDir.'/../lib/SystemTag/SystemTagsObjectMappingCollection.php', |
|
149 | + 'OCA\\DAV\\SystemTag\\SystemTagsObjectTypeCollection' => $baseDir.'/../lib/SystemTag/SystemTagsObjectTypeCollection.php', |
|
150 | + 'OCA\\DAV\\SystemTag\\SystemTagsRelationsCollection' => $baseDir.'/../lib/SystemTag/SystemTagsRelationsCollection.php', |
|
151 | + 'OCA\\DAV\\Upload\\AssemblyStream' => $baseDir.'/../lib/Upload/AssemblyStream.php', |
|
152 | + 'OCA\\DAV\\Upload\\ChunkingPlugin' => $baseDir.'/../lib/Upload/ChunkingPlugin.php', |
|
153 | + 'OCA\\DAV\\Upload\\FutureFile' => $baseDir.'/../lib/Upload/FutureFile.php', |
|
154 | + 'OCA\\DAV\\Upload\\RootCollection' => $baseDir.'/../lib/Upload/RootCollection.php', |
|
155 | + 'OCA\\DAV\\Upload\\UploadFolder' => $baseDir.'/../lib/Upload/UploadFolder.php', |
|
156 | + 'OCA\\DAV\\Upload\\UploadHome' => $baseDir.'/../lib/Upload/UploadHome.php', |
|
157 | 157 | ); |