• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/incomingmanager.php
  • Класс: BitrixCalendarSyncManagersIncomingManager
  • Вызов: IncomingManager::deleteSection
public function deleteSection(Section $section, int $linkId)
{
	$this->deleteSectionConnection($section->getId(), $linkId);

	if ($section->getExternalType() !== 'local')
	{
		CCalendarSect::Delete($section->getId(), false, [
			'originalFrom' => $this->connection->getVendor()->getCode(),
		]);
	}
	else
	{
		$this->exportLocalSection($section);
	}
}