Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factory.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Icloud
;
4
5
use
Bitrix\Calendar\Sync
;
6
use
Bitrix\Calendar\Sync\Connection\Connection
;
7
use
Bitrix\Calendar\Sync\Managers\IncomingEventManagerInterface
;
8
use
Bitrix\Calendar\Sync\Managers\IncomingSectionManagerInterface
;
9
use
Bitrix\Calendar\Sync\Managers\OutgoingEventManagerInterface
;
10
use
Bitrix\Calendar\Sync\Managers\OutgoingSectionManagerInterface
;
11
use
Bitrix\Calendar\Sync\Util\Context
;
12
13
class
Factory
extends
Sync\Factories\FactoryBase
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
70
public
function
getIncomingSectionManager
():
IncomingSectionManagerInterface
71
{
72
return
new
IncomingManager
();
73
}
74
78
public
function
getIncomingEventManager
():
IncomingEventManagerInterface
79
{
80
return
new
IncomingManager
();
81
}
82
86
public
function
getOutgoingEventManager
():
OutgoingEventManagerInterface
87
{
88
return
new
OutgoingEventManager
();
89
}
90
94
public
function
getOutgoingSectionManager
():
OutgoingSectionManagerInterface
95
{
96
return
new
OutgoingSectionManager
();
97
}
98
}
Bitrix\Calendar\Core\Mappers\Connection
Definition
connection.php:23
Bitrix\Calendar\Core\Mappers\Factory
Definition
factory.php:6
Bitrix\Calendar\Core\Mappers\Factory\getConnection
getConnection()
Definition
factory.php:66
Bitrix\Calendar\Sync\Connection\Connection
Definition
connection.php:13
Bitrix\Calendar\Sync\Factories\FactoryBase
Definition
factorybase.php:12
Bitrix\Calendar\Sync\Google\EventManager
Definition
eventmanager.php:29
Bitrix\Calendar\Sync\Google\OutgoingEventManager
Definition
outgoingeventmanager.php:30
Bitrix\Calendar\Sync\Google\OutgoingSectionManager
Definition
outgoingsectionmanager.php:9
Bitrix\Calendar\Sync\Google\SectionManager
Definition
sectionmanager.php:19
Bitrix\Calendar\Sync\Icloud\Context
Definition
context.php:9
Bitrix\Calendar\Sync\Icloud\Factory\getSectionManager
getSectionManager()
Definition
factory.php:30
Bitrix\Calendar\Sync\Icloud\Factory\SERVICE_NAME
const SERVICE_NAME
Definition
factory.php:15
Bitrix\Calendar\Sync\Icloud\Factory\getOutgoingSectionManager
getOutgoingSectionManager()
Definition
factory.php:94
Bitrix\Calendar\Sync\Icloud\Factory\getContext
getContext()
Definition
factory.php:62
Bitrix\Calendar\Sync\Icloud\Factory\getIncomingSectionManager
getIncomingSectionManager()
Definition
factory.php:70
Bitrix\Calendar\Sync\Icloud\Factory\getIncomingEventManager
getIncomingEventManager()
Definition
factory.php:78
Bitrix\Calendar\Sync\Icloud\Factory\canSubscribeSection
canSubscribeSection()
Definition
factory.php:54
Bitrix\Calendar\Sync\Icloud\Factory\getEventManager
getEventManager()
Definition
factory.php:21
Bitrix\Calendar\Sync\Icloud\Factory\getCode
getCode()
Definition
factory.php:46
Bitrix\Calendar\Sync\Icloud\Factory\getConnection
getConnection()
Definition
factory.php:38
Bitrix\Calendar\Sync\Icloud\Factory\getOutgoingEventManager
getOutgoingEventManager()
Definition
factory.php:86
Bitrix\Calendar\Sync\Icloud\IncomingManager
Definition
incomingmanager.php:11
Bitrix\Calendar\Sync\Util\Context
Definition
context.php:18
Bitrix\Calendar\Sync\Managers\EventManagerInterface
Definition
eventmanagerinterface.php:15
Bitrix\Calendar\Sync\Managers\IncomingEventManagerInterface
Definition
incomingeventmanagerinterface.php:12
Bitrix\Calendar\Sync\Managers\IncomingSectionManagerInterface
Definition
incomingsectionmanagerinterface.php:12
Bitrix\Calendar\Sync\Managers\OutgoingEventManagerInterface
Definition
outgoingeventmanagerinterface.php:8
Bitrix\Calendar\Sync\Managers\OutgoingSectionManagerInterface
Definition
outgoingsectionmanagerinterface.php:8
Bitrix\Calendar\Sync\Managers\SectionManagerInterface
Definition
sectionmanagerinterface.php:12
Bitrix\Calendar\Sync\Icloud
Definition
abstractmanager.php:3
Bitrix\Calendar\Sync
modules
calendar
lib
sync
icloud
factory.php
Создано системой
1.10.0