1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sync\Icloud;
4
5use Bitrix\Calendar\Sync;
6use Bitrix\Calendar\Sync\Connection\Connection;
7use Bitrix\Calendar\Sync\Managers\IncomingEventManagerInterface;
8use Bitrix\Calendar\Sync\Managers\IncomingSectionManagerInterface;
9use Bitrix\Calendar\Sync\Managers\OutgoingEventManagerInterface;
10use Bitrix\Calendar\Sync\Managers\OutgoingSectionManagerInterface;
11use Bitrix\Calendar\Sync\Util\Context;
12
14{
15 public const SERVICE_NAME = 'icloud';
16
22 {
23 return new EventManager($this->getConnection(), $this->getConnection()->getOwner()->getId());
24 }
25
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}
$connection
Определения actionsdefinitions.php:38
getOutgoingSectionManager()
Определения factory.php:94
getIncomingSectionManager()
Определения factory.php:70
$context
Определения csv_new_setup.php:223
Определения culture.php:9