• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/lib/integration/zoom/conference.php
  • Класс: BitrixSocialServicesIntegrationZoomConference
  • Вызов: Conference::setEnd
static function setEnd(int $conferenceId): Result
{
	$result = new Result();

	$params = [
		'CONFERENCE_ENDED' => (new DateTime()),
	];

	$meeting = ZoomMeetingTable::getRowByExternalId($conferenceId);
	if (!$meeting)
	{
		return $result->addError(new Error("Meeting {$conferenceId} is not found"));
	}
	$updateResult = ZoomMeetingTable::update($meeting['ID'], $params);
	if (!$updateResult->isSuccess())
	{
		$result->addError(new Error('Error while update end status.'));
	}
	else
	{
		$result->setData($meeting);
	}

	return $result;
}