Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
buildersectionconnectionfromexternalsection.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Google\Builders
;
4
5
use
Bitrix\Calendar\Core\Builders\Builder
;
6
use
Bitrix\Calendar\Core\Section\Section
;
7
use
Bitrix\Calendar\Sync\Connection\Connection
;
8
use
Bitrix\Calendar\Sync\Connection\SectionConnection
;
9
use
Bitrix\Calendar\Sync\Dictionary
;
10
11
class
BuilderSectionConnectionFromExternalSection
implements
Builder
12
{
16
private
array $externalSection;
20
private
Section
$section;
24
private
Connection
$connection;
25
26
public
function
__construct
(array $externalSection,
Section
$section,
Connection
$connection)
27
{
28
$this->externalSection = $externalSection;
29
$this->section = $section;
30
$this->connection = $connection;
31
}
32
33
public
function
build
()
34
{
35
return
(
new
SectionConnection
())
36
->setVendorSectionId($this->externalSection[
'id'
])
37
->setConnection($this->connection)
38
->setLastSyncStatus(
Dictionary::SYNC_STATUS
[
'success'
])
39
->setVersionId($this->externalSection[
'etag'
])
40
->setSection($this->section)
41
->setOwner($this->section->getOwner())
42
;
43
}
44
}
Bitrix\Calendar\Core\Event\Tools\Dictionary
Definition
dictionary.php:8
Bitrix\Calendar\Core\Mappers\Connection
Definition
connection.php:23
Bitrix\Calendar\Core\Mappers\SectionConnection
Definition
sectionconnection.php:20
Bitrix\Calendar\Core\Mappers\Section
Definition
section.php:21
Bitrix\Calendar\Core\Section\Section
Definition
section.php:11
Bitrix\Calendar\Sync\Connection\Connection
Definition
connection.php:13
Bitrix\Calendar\Sync\Connection\SectionConnection
Definition
sectionconnection.php:16
Bitrix\Calendar\Sync\Dictionary\SYNC_STATUS
const SYNC_STATUS
Definition
dictionary.php:15
Bitrix\Calendar\Sync\Google\Builders\BuilderSectionConnectionFromExternalSection
Definition
buildersectionconnectionfromexternalsection.php:12
Bitrix\Calendar\Sync\Google\Builders\BuilderSectionConnectionFromExternalSection\build
build()
Definition
buildersectionconnectionfromexternalsection.php:33
Bitrix\Calendar\Sync\Google\Builders\BuilderSectionConnectionFromExternalSection\__construct
__construct(array $externalSection, Section $section, Connection $connection)
Definition
buildersectionconnectionfromexternalsection.php:26
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Sync\Google\Builders
Definition
buidlersynceventfromexternalevent.php:3
modules
calendar
lib
sync
google
builders
buildersectionconnectionfromexternalsection.php
Создано системой
1.10.0