• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_event.php
  • Класс: CCalendarEvent
  • Вызов: CCalendarEvent::GetMeetingStatus
static function GetMeetingStatus($userId, $eventId)
{
	global $DB;
	$eventId = (int)$eventId;
	$userId = (int)$userId;
	$status = false;
	$event = self::GetById($eventId, false);
	if ($event && $event['IS_MEETING'] && (int)$event['PARENT_ID'] > 0)
	{
		if ((int)$event['CREATED_BY'] === $userId)
		{
			$status = $event['MEETING_STATUS'];
		}
		else
		{
			$res = $DB->Query("SELECT MEETING_STATUS from b_calendar_event 
                      WHERE PARENT_ID=". (int)$event['PARENT_ID'] ." 
                      AND CREATED_BY=".$userId, false, "File: ".__FILE__."
Line: ".__LINE__ ); $event = $res->Fetch(); $status = $event['MEETING_STATUS']; } } return $status; }