Check that data is apply to these filter params
@param $row
@param array $filters
@return bool
974121
private function meetFilters($row, array $filters)
    {
        $matched = true;
        if (count($filters) && count(array_diff(self::PERIODS, array_keys($filters)))) {

            $startDate = current($row['delivery_execution_started_at']);
            $startTime = $startDate ? \tao_helpers_Date::getTimeStamp($startDate) : 0;
            $endDate = current($row['delivery_execution_finished_at']);
            $endTime = $endDate ? \tao_helpers_Date::getTimeStamp($endDate) : 0;

            if ($startTime) {
                if ($matched && array_key_exists('startfrom', $filters) && $filters['startfrom']) {
                    $matched = $startTime >= $filters['startfrom'];
                }
                if ($matched && array_key_exists('startto', $filters) && $filters['startto']) {
                    $matched = $startTime <= $filters['startto'];
                }
            }

            if ($endTime && $matched) {
                if ($matched && array_key_exists('endfrom', $filters) && $filters['endfrom']) {
                    $matched = $endTime >= $filters['endfrom'];
                }
                if ($matched && array_key_exists('endto', $filters) && $filters['endto']) {
                    $matched = $endTime <= $filters['endto'];
                }
            }
        }
        return $matched;
    }
707608
protected function calculateAdditionalFiltersData(& $filters)
	{
		if (!empty($this->additional_filters_data)) {
			foreach ($this->additional_filters_data as $f => $src) {
				if (isset($src['query'])) {
					$filters[$f] = $this->query->pdo->query($src['query'])->fetchColumn();
				}
			}
		}
	}
1155624
public static function isRowActions($row)
    {
        return (count($row) == count(static::makeEmptyActionRow())) && isset($row[Metrics::INDEX_NB_ACTIONS]);
    }
558309
public function set($filters)
    {
        if (! is_array($filters)) {
            $filters = func_get_args();
        }

        $this->clear();

        foreach ($filters as $filter) {
            $this->push($filter);
        }

        return $this->getDisplay();
    }
925740
protected function validateRow(array $row)
    {
        foreach ($row as $k => $v)
        {
            if (WF::is_array_like($v))
                throw new InvalidArgumentException("CSVWriter does not support nested arrays");
        }
    }
1341206
function hasFilterRow() {
      // if (this.mode === 'remote' || !this.globalSearchEnabled) {
      for (var i = 0; i < this.columns.length; i++) {
        var col = this.columns[i];

        if (col.filterOptions && col.filterOptions.enabled) {
          return true;
        }
      } // }


      return false;
    }
710632
public static function matchFilter(array &$datas, array $get) {
        if (sizeof($get) > 0) {
            $datas = array_filter($datas, function($obj) use($get) {
                return array_intersect_assoc((array) $obj, $get) == $get;
            });
        }
    }
764760
protected function applyRequestFilters(QueryBuilder $queryBuilder, array $filters = [])
    {
        foreach ($filters as $field => $value) {
            // Empty string and numeric keys is considered as "not applied filter"
            if ('' === $value || \is_int($field)) {
                continue;
            }

            $operator = \is_array($value) ? ListFilter::OPERATOR_IN : ListFilter::OPERATOR_EQUALS;
            $listFilter = ListFilter::createFromRequest($field, $operator, $value);

            $this->filterQueryBuilder($queryBuilder, $field, $listFilter);
        }
    }
1113400
def filter_rows(self, filters, rows):
        ''''''
        ret = []
        for row in rows:
            if not self.row_is_filtered(row, filters):
                ret.append(row)
        return ret
1357164
def row_is_filtered(self, row_subs, filters):
        ''''''
        for filtername in filters:
            filtervalue = filters[filtername]
            if filtername in row_subs:
                row_subs_value = row_subs[filtername]
                if str(row_subs_value) != str(filtervalue):
                    return True
            else:
                print("fw: Unknown filter keyword (%s)" % (filtername,))
        return False
1112692
protected function isAllHeadingValuesPresentInRow(?array $row){

        if (true === empty($row)) {
            return false;
        }

        foreach($this->targettedHeadingValues as $headerValue){

            if (false === in_array(trim($headerValue), $row)) {
                //print($headerValue . ' not in ' . print_r($row,true));
                return false;
            }

        }

        return true;
    }
617186
protected function filter($rows, $condition)
    {
        $result = [];

        foreach ((array)$rows as $row) {
            $actual = isset($row[$condition['field']]) ? $row[$condition['field']] : null;

            switch ($condition['op']) {
                case Operator::EQUAL:
                    if ($actual == $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::NOT_EQUAL:
                    if ($actual != $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::GREATER_THAN:
                    if ($actual > $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::GREATER_OR_EQUAL:
                    if ($actual >= $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::LESS_THAN:
                    if ($actual < $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::LESS_OR_EQUAL:
                    if ($actual <= $condition['value']) {
                        $result[] = $row;
                    }
                    break;

                case Operator::CONTAINS:
                    if (strpos($actual, $condition['value']) !== false) {
                        $result[] = $row;
                    }
                    break;

                case Operator::STARTS_WITH:
                    if (preg_match('~^' . preg_quote($condition['value'], '~') . '~', $actual)) {
                        $result[] = $row;
                    }
                    break;

                case Operator::ENDS_WITH:
                    if (preg_match('~' . preg_quote($condition['value'], '$~') . '~', $actual)) {
                        $result[] = $row;
                    }
                    break;

                case Operator::MATCHES:
                    if (preg_match('~' . str_replace('~', '\~', $condition['value']) . '~', $actual)) {
                        $result[] = $row;
                    }
                    break;

                case Operator::IN:
                    if (in_array($actual, $condition['value'])) {
                        $result[] = $row;
                    }
                    break;

                default:
                    throw new InvalidOperatorException;
                    break;
            }
        }

        return $result;
    }
527886
public function applyFilters($filters)
    {
        foreach ($filters as $key => $value) {
            $this->filters[$key] = $value;
        }

        return $this;
    }
1216821
public final Map<String, Object> applyFilters(
            final Map<String, Object> row) {
        Map<String, Object> filteringRow = new LinkedHashMap<>(row);
        assertFilterListExists();
        for (IDataFilter filter : getFilters()) {
            filteringRow = filter.apply(filteringRow);
        }

        return filteringRow;
    }
717930
private function getFilteredRow($row)
    {
        $newRow = array();

        foreach ($row as $column => $value) {
            if (in_array($column, $this->columns)) {
                $newRow[$column] = $value;
            }
        }

        return $newRow;
    }
386239
public function filter(array $filters)
	{
		foreach ($filters as $filter) {
			if ($filter->isValueSet()) {
				if ($filter->hasConditionCallback()) {
					$data = (array) call_user_func_array(
						$filter->getConditionCallback(),
						[$this->data, $filter->getValue()]
					);
					$this->setData($data);
				} else {
					$data = array_filter($this->data, function ($row) use ($filter) {
						return $this->applyFilter($row, $filter);
					});
					$this->setData($data);
				}
			}
		}

		return $this;
	}
396718
protected function parsePanelFilter(PanelRowInterface $row)
    {
        foreach ($this->getFromDca('fields') as $property => $value) {
            if (isset($value['filter'])) {
                $element = new DefaultFilterElementInformation();
                $element->setPropertyName($property);
                if (!$row->hasElement($element->getName())) {
                    $row->addElement($element);
                }
            }
        }
    }