original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Add a filter to grid.
  
  @param AbstractFilter $filter
  
  @return AbstractFilter
docstring_tokens: Add a filter to grid .