• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/googleapisync.php
  • Класс: BitrixCalendarSyncGoogleApiSync
  • Вызов: GoogleApiSync::updateLastResultConnection
public function updateLastResultConnection(string $lastResult): void
{
	if (Loader::includeModule('dav') && !empty($this->connectionId))
	{
		CDavConnection::Update($this->connectionId, [
			"LAST_RESULT" => $lastResult,
			"SYNCHRONIZED" => ConvertTimeStamp(time(), "FULL"),
		]);
	}

	if (GoogleApiPush::isConnectionError($lastResult))
	{
		AddMessage2Log("Bad interaction with Google calendar for connectionId: " . $this->connectionId . " " .$lastResult, "calendar");
	}
}