• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/office365/outgoingeventmanager.php
  • Класс: BitrixCalendarSyncOffice365OutgoingEventManager
  • Вызов: OutgoingEventManager::getSyncSection
private function getSyncSection(SyncSectionMap $syncSectionMap, int $id): ?SyncSection
{
	if (!array_key_exists($id, $this->map))
	{
		$this->map[$id] = null;
		/** @var SyncSection $syncSection */
		foreach ($syncSectionMap as $syncSection)
		{
			if ($syncSection->getSection()->getId() === $id)
			{
				$this->map[$id] = $syncSection;
				break;
			}
		}
	}

	return $this->map[$id];
}