• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_sect.php
  • Класс: CCalendarSect
  • Вызов: CCalendarSect::GetById
static function GetById(int $id = 0, bool $checkPermissions = true, bool $bRerequest = false)
{
	if ($id > 0)
	{
		if (!isset(self::$sections[$id]) || $bRerequest)
		{
			$section = self::GetList([
				'arFilter' => ['ID' => $id],
				'checkPermissions' => $checkPermissions,
			]);

			if($section && is_array($section) && is_array($section[0]))
			{
				self::$sections[$id] = $section[0];
				return $section[0];
			}
		}
		else
		{
			return self::$sections[$id];
		}
	}

	return false;
}