• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/vendordataexchangemanager.php
  • Класс: BitrixCalendarSyncManagersVendorDataExchangeManager
  • Вызов: VendorDataExchangeManager::getLocalEventsForExport
private function getLocalEventsForExport(): ?SyncEntitiesSyncEventMap
{
	$sectionIdCollection = [];
	/** @var SyncEntitiesSyncSection $syncSection */
	foreach ($this->syncSectionMap as $syncSection)
	{
		$sectionIdCollection[] = $syncSection->getSection()->getId();
	}

	// foreach ($this->importedLocalEventUidList as $eventUid)
	// {
	// 	$candidatesForExport->remove($eventUid);
	// }

	return $this->syncEventFactory->getSyncEventMapBySyncSectionIdCollectionForExport(
		$sectionIdCollection,
		$this->factory->getConnection()->getOwner()->getId(),
		$this->factory->getConnection()->getId()
	)->getNotSuccessSyncEvent();
}