1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
masterpushhandler.php
См. документацию.
1<?php
2
4
9
11{
12 public const MASTER_STAGE = [
13 0 => 'connection_created',
14 1 => 'sections_sync_finished',
15 2 => 'import_finished',
16 3 => 'export_finished',
17 ];
18
19 protected Role $owner;
20 protected string $vendorName;
21 protected string $accountName;
22
23 public function __construct(Role $owner, string $vendorName, string $accountName)
24 {
25 $this->owner = $owner;
26 $this->vendorName = $vendorName;
27 $this->accountName = $accountName;
28 }
29
34 public function __invoke(string $stage)
35 {
37 PushCommand::ProcessSyncConnection,
38 $this->owner->getId(),
39 [
40 'vendorName' => $this->vendorName,
41 'stage' => $stage,
42 'accountName' => $this->accountName,
43 ]
44 );
45 }
46
47}
__construct(Role $owner, string $vendorName, string $accountName)
Определения masterpushhandler.php:23
Определения util.php:21
static addPullEvent(PushCommand $command, int $userId, array $params=[])
Определения util.php:385