original_string: public function setFilter(array $allowed = array(), $query = null)
      {
          if (!isset($query)) {
              $query = $this->getFilterQuery();
          }
  
          $this->setFilterData($allowed, $query);
          $this->query_filter = array_filter($query, 'is_string');
      }
code: public function setFilter(array $allowed = array(), $query = null)
      {
          if (!isset($query)) {
              $query = $this->getFilterQuery();
          }
  
          $this->setFilterData($allowed, $query);
          $this->query_filter = array_filter($query, 'is_string');
      }
code_tokens: public function setFilter ( array $ allowed = array ( ) , $ query = null ) { if ( ! isset ( $ query ) ) { $ query = $ this -> getFilterQuery ( ) ; } $ this -> setFilterData ( $ allowed , $ query ) ; $ this -> query_filter = array_filter ( $ query , 'is_string' ) ; }
docstring: Sets filter variables to the data array
  @param array $allowed
  @param array $query
docstring_tokens: Sets filter variables to the data array