• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/ui/calendarfilter.php
  • Класс: BitrixCalendarUiCalendarFilter
  • Вызов: CalendarFilter::getFilterId
static function getFilterId($type, $ownerId, $userId): string
{
	static::$filterId = 'calendar-filter';
	if ($type === 'user' && (int)$ownerId === (int)$userId)
	{
		static::$filterId = 'calendar-filter-personal';
	}
	else if (
		$type === 'company_calendar'
		|| $type === 'calendar_company'
		|| $type === 'company'
	)
	{
		static::$filterId = 'calendar-filter-company';
	}
	else if ($type === 'group')
	{
		static::$filterId = 'calendar-filter-group';
	}

	return static::$filterId;
}