- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/vendordataexchangemanager.php
- Класс: BitrixCalendarSyncManagersVendorDataExchangeManager
- Вызов: VendorDataExchangeManager::updateConnection
public function updateConnection(Connection $connection): self
{
$connection->setLastSyncTime(new CoreBaseDate());
(new CoreMappersConnection())->update($connection);
$accountType = $connection->getAccountType() === SyncGoogleHelper::GOOGLE_ACCOUNT_TYPE_API
? 'google'
: $connection->getAccountType()
;
Util::addPullEvent('refresh_sync_status', $connection->getOwner()->getId(), [
'syncInfo' => [
$accountType => [
'status' => $this->getSyncStatus($connection->getStatus()),
'type' => $accountType,
'connected' => true,
'id' => $connection->getId(),
'syncOffset' => 0,
],
],
'requestUid' => Util::getRequestUid(),
]);
return $this;
}