• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/outgoingmanager.php
  • Класс: BitrixCalendarSyncManagersOutgoingManager
  • Вызов: OutgoingManager::getSectionLink
private function getSectionLink(BitrixCalendarCoreSectionSection $section): ?SectionConnection
{
	$mapper = new CoreMappersSectionConnection();
	$map = $mapper->getMap([
		'=SECTION_ID' => $section->getId(),
		'=CONNECTION_ID' => $this->connection->getId(),
	]);
	switch ($map->count())
	{
		case 0:
			return null;
		case 1:
			return $map->fetch();
		default:
			throw new CoreBaseBaseException('More than 1 SectionConnections found.');
	}
}