HistoryComparisonRenderer
API reference › Yii3 Debug › Web › HistoryComparisonRenderer
Renders capture-comparison selection and results with the shared Debug Core primitives.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders the comparison page for two captures. | HistoryComparisonRenderer |
renderForm() static | Renders the capture-selection form of the comparison page. | HistoryComparisonRenderer |
renderHistoryForm() static | Renders the compact comparison form embedded in the history page. | HistoryComparisonRenderer |
renderWithPanels() static | Renders links only for panels registered by the current adapter. | HistoryComparisonRenderer |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(Yii3\Debug\Comparison\HistoryComparison $comparison, array<string, PHPForge\Debug\Storage\RequestSummary> $manifest, string $routePrefix): stringRenders the comparison page for two captures.
Parameters
| Parameter | Type | Description |
|---|---|---|
$comparison | Yii3\ | Differences between the two captures. |
$manifest | array<string, | Captured request summaries keyed by tag. |
$routePrefix | string | Base route used to generate debugger URLs. |
Returns
string: Rendered comparison page.
renderForm()
Section titled “renderForm() ”public static function renderForm(array<string, PHPForge\Debug\Storage\RequestSummary> $manifest, string $baseline, string $target, string $routePrefix): stringRenders the capture-selection form of the comparison page.
Parameters
| Parameter | Type | Description |
|---|---|---|
$manifest | array<string, | Captured request summaries keyed by tag. |
$baseline | string | Tag currently selected as the baseline. |
$target | string | Tag currently selected as the target. |
$routePrefix | string | Base route used to generate debugger URLs. |
Returns
string: Rendered form.
renderHistoryForm()
Section titled “renderHistoryForm() ”public static function renderHistoryForm(array<string, PHPForge\Debug\Storage\RequestSummary> $manifest, string $routePrefix): stringRenders the compact comparison form embedded in the history page.
Parameters
| Parameter | Type | Description |
|---|---|---|
$manifest | array<string, | Captured request summaries keyed by tag. |
$routePrefix | string | Base route used to generate debugger URLs. |
Returns
string: Rendered form, or '' when fewer than two captures are available.
renderWithPanels()
Section titled “renderWithPanels() ”public static function renderWithPanels(Yii3\Debug\Comparison\HistoryComparison $comparison, array<string, PHPForge\Debug\Storage\RequestSummary> $manifest, string $routePrefix, array<string, string> $panelLabels): stringRenders links only for panels registered by the current adapter.
Parameters
| Parameter | Type | Description |
|---|---|---|
$comparison | Yii3\ | Differences between the two captures. |
$manifest | array<string, | Captured request summaries keyed by tag. |
$routePrefix | string | Base route used to generate debugger URLs. |
$panelLabels | array<string, | Registered display names indexed by panel ID. |
Returns
string: Rendered comparison page.