• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/office365/incomingmanager.php
  • Класс: Bitrix\Calendar\Sync\Office365\IncomingManager
  • Вызов: IncomingManager::getSections
public function getSections(): Result
    {
	$result = new Result();
	$syncSectionMap = new SyncSectionMap();
	$sections = $this->context->getVendorSyncService()->getSections();
	foreach ($sections as $sectionDto)
	{
		if ($sectionDto->canShare)
		{
			$syncSectionMap->add(
				$this->prepareSyncSection($sectionDto),
				$sectionDto->id
			);
		}
	}

	return $result->setData([
		'externalSyncSectionMap' => $syncSectionMap,
	]);
    }