protected function addFilter(AbstractFilter $filter)
    {
        $this->layout->addFilter($filter);

        $filter->setParent($this);

        if ($this->thisFilterLayoutOnly) {
            $this->thisFilterLayoutOnly = false;
            $this->layoutOnlyFilterColumns[] = $filter->getColumn();
        }

        return $this->filters[] = $filter;
    }
protected function addFilter(AbstractFilter $filter)
    {
        $this->layout->addFilter($filter);

        $filter->setParent($this);

        if ($this->thisFilterLayoutOnly) {
            $this->thisFilterLayoutOnly = false;
            $this->layoutOnlyFilterColumns[] = $filter->getColumn();
        }

        return $this->filters[] = $filter;
    }
protected function addFilter ( AbstractFilter $ filter ) { $ this -> layout -> addFilter ( $ filter ) ; $ filter -> setParent ( $ this ) ; if ( $ this -> thisFilterLayoutOnly ) { $ this -> thisFilterLayoutOnly = false ; $ this -> layoutOnlyFilterColumns [ ] = $ filter -> getColumn ( ) ; } return $ this -> filters [ ] = $ filter ; }
Add a filter to grid.

@param AbstractFilter $filter

@return AbstractFilter
Add a filter to grid .