- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/ui/calendarfilter.php
- Класс: BitrixCalendarUiCalendarFilter
- Вызов: CalendarFilter::getFilters
static function getFilters(): array
{
if (empty(static::$filters))
{
static::$filters['CREATED_BY'] = [
'id' => 'CREATED_BY',
'name' => Loc::getMessage('CALENDAR_FILTER_CREATED_BY'),
'type' => 'entity_selector',
'partial' => true,
'params' => [
'multiple' => 'Y',
'dialogOptions' => [
'height' => 240,
'context' => 'filter',
'entities' => [
[
'id' => 'user',
'options' => [
'inviteEmployeeLink' => false
],
]
]
],
],
];
static::$filters['ATTENDEES'] = [
'id' => 'ATTENDEES',
'name' => Loc::getMessage('CALENDAR_FILTER_ATTENDEES'),
'type' => 'entity_selector',
'partial' => true,
'params' => [
'multiple' => 'Y',
'dialogOptions' => [
'height' => 270,
'context' => 'filter',
'entities' => [
[
'id' => 'user',
'options' => [
'inviteEmployeeLink' => false
],
],
]
],
],
];
static::$filters['MEETING_STATUS'] = [
'id' => 'MEETING_STATUS',
'name' => Loc::getMessage('CALENDAR_FILTER_MEETING_STATUS_ME'),
'type' => 'list',
'params' => [
'multiple' => 'N'
],
'items' => [
'H' => Loc::getMessage('CALENDAR_FILTER_MEETING_STATUS_H'),
'Q' => Loc::getMessage('CALENDAR_FILTER_MEETING_STATUS_Q'),
'Y' => Loc::getMessage('CALENDAR_FILTER_MEETING_STATUS_Y'),
'N' => Loc::getMessage('CALENDAR_FILTER_MEETING_STATUS_N'),
]
];
static::$filters['DATE'] = [
'id' => 'DATE',
'name' => Loc::getMessage('CALENDAR_FILTER_DATE'),
'type' => 'date',
'default' => true,
];
}
return static::$filters;
}