• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskfilterctrl.php
  • Класс: CTaskFilterCtrl
  • Вызов: CTaskFilterCtrl::getSelectedFilterPresetId
public function getSelectedFilterPresetId()
{
	$rc = (int) CUserOptions::GetOption(
		self::filterCategoryName,
		$this->paramName,
		(string) self::STD_PRESET_ALIAS_TO_DEFAULT,	// by default
		$this->loggedInUserId
	);

	// ensure, that selected filter exists
	if ( ! in_array($rc, array_keys($this->arPresets), true) )
		$rc = self::STD_PRESET_ALIAS_TO_DEFAULT;

	return ($rc);
}