Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventdelayedsync.php
1<?php
2
4
6
8{
9 public function process(Interfaces\Message $message): string
10 {
11 return self::ACK;
12
13 $data = $message->getBody();
14
15 if (!$data['parentId'])
16 {
17 return self::REJECT;
18 }
19
20 $event =\CCalendarEvent::GetById($data['parentId'], false);
21 if (!$event)
22 {
23 return self::REJECT;
24 }
25
26 \CCalendar::SaveEvent([
27 'arFields' => [
28 'ID' => $data['parentId'],
29 ],
30 'checkPermission' => false,
31 'overSaving' => true,
32 ]);
33
34 return self::ACK;
35 }
36}