1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
importsectionmanager.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sync\Managers;
4
5use Bitrix\Calendar\Core;
6use Bitrix\Calendar\Sync;
7use Bitrix\Calendar\Sync\Factories\FactoryBase;
8use Bitrix\Main\ObjectNotFoundException;
9
11{
12 private ?Sync\Entities\SyncSectionMap $externalSyncSectionMap = null;
13 private IncomingSectionManagerInterface $importManager;
14
21 public function __construct(FactoryBase $factory)
22 {
23 $this->importManager = $factory->getIncomingSectionManager();
24 }
25
33 public function import(): ImportSectionManager
34 {
35 $result = $this->importManager->getSections();
36 if ($result->isSuccess())
37 {
38 $this->externalSyncSectionMap = $result->getData()['externalSyncSectionMap'];
39 }
40
41 return $this;
42 }
43
48 {
49 return $this->externalSyncSectionMap ?? new Sync\Entities\SyncSectionMap();
50 }
51
52 public function getSyncToken(): ?string
53 {
54 return $this->importManager->getSyncToken();
55 }
56
57 public function getEtag(): ?string
58 {
59 return $this->importManager->getEtag();
60 }
61
62 public function getStatus(): ?string
63 {
64 return $this->importManager->getStatus();
65 }
66}
$result
Определения get_property_values.php:14