• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_restservice.php
  • Класс: CCalendarRestService
  • Вызов: CCalendarRestService::MeetingStatusGet
static function MeetingStatusGet($params = [], $nav = null, $server = null)
{
	$userId = CCalendar::GetCurUserId();
	$methodName = "calendar.meeting.status.get";

	$necessaryParams = array('eventId');
	foreach ($necessaryParams as $param)
	{
		if (empty($params[$param]))
		{
			throw new RestException(Loc::getMessage('CAL_REST_PARAM_EXCEPTION', [
				'#PARAM_NAME#' => $param,
				'#REST_METHOD#' => $methodName
			]));
		}
	}

	$status = CCalendarEvent::GetMeetingStatus(
		$userId,
		$params['eventId'],
	);

	if ($status === false)
	{
		throw new RestException(Loc::getMessage('CAL_REST_GET_STATUS_ERROR'));
	}

	return $status;
}