1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
buildersectionconnectionfromexternalsection.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sync\Google\Builders;
4
5use Bitrix\Calendar\Core\Builders\Builder;
6use Bitrix\Calendar\Core\Section\Section;
7use Bitrix\Calendar\Sync\Connection\Connection;
8use Bitrix\Calendar\Sync\Connection\SectionConnection;
9use Bitrix\Calendar\Sync\Dictionary;
10
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}
const SYNC_STATUS
Определения dictionary.php:16
__construct(array $externalSection, Section $section, Connection $connection)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804