Skip to content
PHP Ecosystem
Explore

HistorySearch

API reference › Yii3 Debug › Search › HistorySearch

final readonly classYii3\Debug\Search\HistorySearch
Sourcesrc/Search/HistorySearch.php

Filters captured request rows from the Debug[...] query group.

PropertyTypeDescriptionDefined by
$activeFilters readonly constructorarray<string, string>Submitted filter values kept for this group, keyed by attribute.HistorySearch
MethodDescriptionDefined by
filter()Keeps only the captures matching every active filter.HistorySearch
fromQueryParams() staticBuilds the search model from the submitted filter values.HistorySearch
public function filter(list<PHPForge\Debug\View\History\HistoryRow> $rows): list<PHPForge\Debug\View\History\HistoryRow>

Keeps only the captures matching every active filter.

Parameters

ParameterTypeDescription
$rowslist<HistoryRow>Captured requests to filter.

Returns

list<HistoryRow>: Rows matching every active filter, reindexed.

public static function fromQueryParams(array<array-key, mixed> $queryParams): self

Builds the search model from the submitted filter values.

Parameters

ParameterTypeDescription
$queryParamsarray<array-key, mixed>Raw query parameters of the debugger request.

Returns

self: Search model holding the active capture filters.