- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskfilterctrl.php
- Класс: CTaskFilterCtrl
- Вызов: CTaskFilterCtrl::switchFilterPreset
public function switchFilterPreset($presetId)
{
if ( ! CTaskAssert::isLaxIntegers($presetId) )
throw new MainArgumentException();
// ensure, that selected filter exists
if ( ! in_array($presetId, array_keys($this->arPresets), true) )
throw new MainArgumentException();
$curPresetId = $this->getSelectedFilterPresetId();
if ($presetId != $curPresetId)
{
CUserOptions::SetOption(
self::filterCategoryName,
$this->paramName,
(string) $presetId,
$bCommon = false,
$this->loggedInUserId
);
}
}