HistorySearch
API reference › Yii3 Debug › Search › HistorySearch
Filters captured request rows from the Debug[...] query group.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$activeFilters readonly constructor | array<string, | Submitted filter values kept for this group, keyed by attribute. | HistorySearch |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
filter() | Keeps only the captures matching every active filter. | HistorySearch |
fromQueryParams() static | Builds the search model from the submitted filter values. | HistorySearch |
Method details
Section titled “Method details”filter()
Section titled “filter() ”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
| Parameter | Type | Description |
|---|---|---|
$rows | list<HistoryRow> | Captured requests to filter. |
Returns
list<HistoryRow>: Rows matching every active filter, reindexed.
fromQueryParams()
Section titled “fromQueryParams() ”public static function fromQueryParams(array<array-key, mixed> $queryParams): selfBuilds the search model from the submitted filter values.
Parameters
| Parameter | Type | Description |
|---|---|---|
$queryParams | array<array-key, | Raw query parameters of the debugger request. |
Returns
self: Search model holding the active capture filters.