• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/google/eventconverter.php
  • Класс: BitrixCalendarSyncGoogleEventConverter
  • Вызов: EventConverter::convertForUpdate
public function convertForUpdate(): array
{
	if ($this->eventConnection === null)
	{
		throw new BaseException('you should initialize eventConnection before update event');
	}

	$event = $this->convertForCreate();
	if ($this->eventConnection && $this->eventConnection->getVendorEventId() !== null)
	{
		$event['id'] = $this->eventConnection->getVendorEventId();

		if ($this->originalEvent->isInstance())
		{
			$event['recurringEventId'] = $this->eventConnection->getRecurrenceId();
		}
	}

	return $event;
}