Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventdelayedsync.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Processor
;
4
5
use
Bitrix\Calendar\Core\Queue\Interfaces
;
6
7
class
EventDelayedSync
implements
Interfaces\Processor
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
}
Bitrix\Calendar\Core\Queue\Processor\EventDelayedSync
Definition
eventdelayedsync.php:8
Bitrix\Calendar\Core\Queue\Processor\EventDelayedSync\process
process(Interfaces\Message $message)
Definition
eventdelayedsync.php:9
Bitrix\Calendar\Core\Queue\Interfaces\Message
Definition
message.php:16
Bitrix\Calendar\Core\Queue\Interfaces\Processor
Definition
processor.php:5
Bitrix\Calendar\Core\Queue\Interfaces\Processor\REJECT
const REJECT
Definition
processor.php:15
Bitrix\Calendar\Core\Queue\Interfaces\Processor\ACK
const ACK
Definition
processor.php:9
Bitrix\Calendar\Core\Queue\Interfaces
Definition
consumer.php:3
Bitrix\Calendar\Core\Queue\Processor
Definition
eventattendeesupdate.php:3
modules
calendar
lib
core
queue
processor
eventdelayedsync.php
Создано системой
1.10.0