• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/grids.php
  • Класс: CGridOptions
  • Вызов: CGridOptions::InitFilter
public function InitFilter()
{
	if(isset($this->options["saved_filter"]) && $this->options["saved_filter"] <> '')
	{
		if(isset($this->all_options["filters"][$this->options["saved_filter"]]) && is_array($this->all_options["filters"][$this->options["saved_filter"]]["fields"]))
		{
			$this->filter = $this->all_options["filters"][$this->options["saved_filter"]]["fields"];
		}
		elseif(isset($this->filterPresets[$this->options["saved_filter"]]) && is_array($this->filterPresets[$this->options["saved_filter"]]["fields"]))
		{
			$this->filter = $this->filterPresets[$this->options["saved_filter"]]["fields"];
		}
	}
}