• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/integration/zoom/downloadagent.php
  • Класс: BitrixSocialservicesIntegrationZoomDownloadAgent
  • Вызов: DownloadAgent::run
static function run($activityId, $recordingId, $siteId = SITE_ID, $attempt = 0)
{
	$recordingFields = ZoomMeetingRecordingTable::getRowById($recordingId);
	$attachResult = static::attach($activityId, $recordingFields, $siteId);
	if ($attachResult->isSuccess())
	{
		return '';
	}

	$attempt++;
	if ($attempt > static::MAX_ATTEMPTS)
	{
		return '';
	}
	$siteId = Application::getConnection()->getSqlHelper()->forSql($siteId);
	return static::class."::run({$activityId}, {$recordingId}, '{$siteId}', {$attempt});";
}