Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
masterpushhandler.php
1<?php
2
4
6use Bitrix\Calendar\Core;
8
10{
11 public const MASTER_STAGE = [
12 0 => 'connection_created',
13 1 => 'sections_sync_finished',
14 2 => 'import_finished',
15 3 => 'export_finished',
16 ];
17
18 protected Role $owner;
19 protected string $vendorName;
20 protected string $accountName;
21
22 public function __construct(Role $owner, string $vendorName, string $accountName)
23 {
24 $this->owner = $owner;
25 $this->vendorName = $vendorName;
26 $this->accountName = $accountName;
27 }
28
33 public function __invoke(string $stage)
34 {
36 'process_sync_connection',
37 $this->owner->getId(),
38 [
39 'vendorName' => $this->vendorName,
40 'stage' => $stage,
41 'accountName' => $this->accountName,
42 ]
43 );
44 }
45
46}
__construct(Role $owner, string $vendorName, string $accountName)
static addPullEvent(string $command, int $userId, array $params=[])
Definition util.php:373