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');
    }
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');
    }
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' ) ; }
Sets filter variables to the data array
@param array $allowed
@param array $query
Sets filter variables to the data array