• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/incomingmanager.php
  • Класс: BitrixCalendarSyncManagersIncomingManager
  • Вызов: IncomingManager::importSectionSimple
private function importSectionSimple(
	Section $section,
	string  $vendorId,
	string $vendorVersion = null,
	bool $isPrimary = null
): SectionConnection
{

	if ($section = $this->saveSection($section))
	{
		if ($link = $this->createSectionConnection($section, $vendorId, $vendorVersion, $isPrimary))
		{
			return $link;
		}
		else
		{
			throw new SystemException("Can't create Section Connection link.", 500, __FILE__, __LINE__ );
		}
	}
	else
	{
		throw new SystemException("Can't create Bitrix Calendar Section.", 500, __FILE__, __LINE__ );
	}
}