Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
factory.php
1<?php
2
4
12
14{
15 public const SERVICE_NAME = 'icloud';
16
21 public function getEventManager(): Sync\Managers\EventManagerInterface
22 {
23 return new EventManager($this->getConnection(), $this->getConnection()->getOwner()->getId());
24 }
25
30 public function getSectionManager(): Sync\Managers\SectionManagerInterface
31 {
32 return new SectionManager($this->getConnection(), $this->getConnection()->getOwner()->getId());
33 }
34
38 public function getConnection(): Connection
39 {
40 return $this->connection;
41 }
42
46 public function getCode(): string
47 {
48 return self::SERVICE_NAME;
49 }
50
54 public function canSubscribeSection(): bool
55 {
56 return false;
57 }
58
62 public function getContext(): Context
63 {
64 return $this->context;
65 }
66
71 {
72 return new IncomingManager();
73 }
74
79 {
80 return new IncomingManager();
81 }
82
87 {
88 return new OutgoingEventManager();
89 }
90
98}