• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/outgoingsectionmanager.php
  • Класс: BitrixCalendarSyncManagersOutgoingSectionManager
  • Вызов: OutgoingSectionManager::safeUpdate
private function safeUpdate(SyncEntitiesSyncSection $syncSection): SyncUtilResult
{
	try
	{
		$result = $this->factory->getSectionManager()->update(
			$syncSection->getSection(),
			$this->prepareContextForUpdate($syncSection)
		);
	}
	catch (SyncExceptionsNotFoundException $e)
	{
		$this->clearBrokenSyncSection($syncSection);
		$result = $this->safeCreate($syncSection->getSection());
	}

	return $result;
}