GridFilter::getPresets

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. GridFilter
  4. getPresets
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/filter/gridfilter.php
  • Класс: BitrixTasksInternalsProjectFilterGridFilter
  • Вызов: GridFilter::getPresets
public function getPresets(): array
{
	return [
		'my' => [
			'name' => $this->isScrum
				? Loc::getMessage('TASKS_PROJECT_GRID_FILTER_SCRUM_PRESET_MY')
				: Loc::getMessage('TASKS_PROJECT_GRID_FILTER_PRESET_MY')
			,
			'fields' => [
				'CLOSED' => 'N',
				'MEMBER_ID' => $this->userId,
				'MEMBER_ID_label' => $this->getCurrentUserName(),
			],
			'default' => true,
		],
		'active_project' => [
			'name' => Loc::getMessage('TASKS_PROJECT_GRID_FILTER_PRESET_ACTIVE_PROJECT'),
			'fields' => [
				'CLOSED' => 'N',
			],
			'default' => false,
		],
		'inactive_project' => [
			'name' => Loc::getMessage('TASKS_PROJECT_GRID_FILTER_PRESET_INACTIVE_PROJECT'),
			'fields' => [
				'CLOSED' => 'Y',
			],
			'default' => false,
		],
	];
}

Добавить комментарий