• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_event.php
  • Класс: CCalendarEvent
  • Вызов: CCalendarEvent::GetById
static function GetById($id, $checkPermissions = true)
{
	if ($id > 0)
	{
		$event = self::GetList([
			'arFilter' => [
				'ID' => $id,
				'DELETED' => 'N'
			],
			'parseRecursion' => false,
			'fetchAttendees' => $checkPermissions,
			'checkPermissions' => $checkPermissions,
			'setDefaultLimit' => false
		]);
		if (!empty($event[0]) && is_array($event[0]))
		{
			return $event[0];
		}
	}

	return false;
}