HistoryCellRenderer
API reference › Debug Core › View › History › HistoryCellRenderer
Renders the History index summary header + the per-cell HTML consumed by the grid columns and the typed row-attributes builder.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
buildRowAttributes() static | Builds the row-attributes map for one captured-request row. The data-* attributes feed the sidebar’s history cursor. | HistoryCellRenderer |
renderAjaxCell() static | Renders the AJAX column cell ('Yes' / 'No'). | HistoryCellRenderer |
renderDurationCell() static | Renders the duration column cell ('X ms' or '(not set)' muted placeholder when missing), with a micro-gauge rail scaled against the page maximum when one exists. | HistoryCellRenderer |
renderMemoryCell() static | Renders the memory column cell ('X.XXX MB' or '(not set)'), with a micro-gauge rail scaled against the page maximum when one exists. | HistoryCellRenderer |
renderMethodCell() static | Renders the method column cell as vocabulary-colored text, or an empty string when the method was not captured. | HistoryCellRenderer |
renderSqlCountCell() static | Renders the SQL-query column cell (count + warning chip + deep-link to the DB panel). | HistoryCellRenderer |
renderStatusCell() static | Renders the status-code badge cell; an uncaptured (0) code renders the muted dash pill, never a 200. | HistoryCellRenderer |
renderSummary() static | Renders the summary header (<header class="yii-debug-grid-summary">) with the request total and the status-bucket pills. | HistoryCellRenderer |
renderTagCell() static | Renders the request-tag column cell as a link to the panel view. | HistoryCellRenderer |
renderTimeCell() static | Renders the time column cell — compact HH:MM:SS with a full Y-m-d H:i:s tooltip on hover. | HistoryCellRenderer |
renderUrlCell() static | Renders the URL column cell with a hover-truncate wrapper. | HistoryCellRenderer |
Method details
Section titled “Method details”buildRowAttributes()
Section titled “buildRowAttributes() ”public static function buildRowAttributes(PHPForge\Debug\View\History\HistoryRow $row, bool $isCritical): array<string, mixed>Builds the row-attributes map for one captured-request row. The data-* attributes feed the sidebar’s history
cursor.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | HistoryRow | Typed history row. |
$isCritical | bool | Whether the row’s status code counts as critical (adds the danger row class). |
Returns
array<string, mixed>
renderAjaxCell()
Section titled “renderAjaxCell() ”public static function renderAjaxCell(PHPForge\Debug\View\History\HistoryRow $row): stringRenders the AJAX column cell ('Yes' / 'No').
renderDurationCell()
Section titled “renderDurationCell() ”public static function renderDurationCell(PHPForge\Debug\View\History\HistoryRow $row, float $maxProcessingTime): stringRenders the duration column cell ('X ms' or '(not set)' muted placeholder when missing), with a micro-gauge
rail scaled against the page maximum when one exists.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | HistoryRow | Typed history row. |
$maxProcessingTime | float | Page maximum in seconds (HistoryScale::$maxProcessingTime). |
Returns
string
renderMemoryCell()
Section titled “renderMemoryCell() ”public static function renderMemoryCell(PHPForge\Debug\View\History\HistoryRow $row, int $maxPeakMemory): stringRenders the memory column cell ('X.XXX MB' or '(not set)'), with a micro-gauge rail scaled against the page
maximum when one exists.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | HistoryRow | Typed history row. |
$maxPeakMemory | int | Page maximum in bytes (HistoryScale::$maxPeakMemory). |
Returns
string
renderMethodCell()
Section titled “renderMethodCell() ”public static function renderMethodCell(PHPForge\Debug\View\History\HistoryRow $row): stringRenders the method column cell as vocabulary-colored text, or an empty string when the method was not captured.
renderSqlCountCell()
Section titled “renderSqlCountCell() ”public static function renderSqlCountCell(PHPForge\Debug\View\History\HistoryRow $row, string $url, bool $isQueryCountCritical, int $criticalQueryThreshold): stringRenders the SQL-query column cell (count + warning chip + deep-link to the DB panel).
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | HistoryRow | Typed history row. |
$url | string | Pre-built link target to the DB panel view for this request. |
$isQueryCountCritical | bool | Whether the row’s query count exceeds the critical threshold. |
$criticalQueryThreshold | int | Threshold surfaced in the warning tooltip when the count is critical. |
Returns
string
renderStatusCell()
Section titled “renderStatusCell() ”public static function renderStatusCell(PHPForge\Debug\View\History\HistoryRow $row): stringRenders the status-code badge cell; an uncaptured (0) code renders the muted dash pill, never a 200.
renderSummary()
Section titled “renderSummary() ”public static function renderSummary(PHPForge\Debug\View\History\HistorySummary $summary, array<string, string> $bucketUrls, string $pageSizeHtml): stringRenders the summary header (<header class="yii-debug-grid-summary">) with the request total and the
status-bucket pills.
Parameters
| Parameter | Type | Description |
|---|---|---|
$summary | HistorySummary | Typed summary aggregate. |
$bucketUrls | array<string, | Bucket-label-to-URL map for the pill deep links (missing labels render without an href). |
$pageSizeHtml | string | Pre-rendered page-size selector markup supplied by the adapter. |
Returns
string
renderTagCell()
Section titled “renderTagCell() ”public static function renderTagCell(PHPForge\Debug\View\History\HistoryRow $row, string $url): stringRenders the request-tag column cell as a link to the panel view.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | HistoryRow | Typed history row. |
$url | string | Pre-built link target to the request’s panel view. |
Returns
string
renderTimeCell()
Section titled “renderTimeCell() ”public static function renderTimeCell(PHPForge\Debug\View\History\HistoryRow $row): stringRenders the time column cell — compact HH:MM:SS with a full Y-m-d H:i:s tooltip on hover.
renderUrlCell()
Section titled “renderUrlCell() ”public static function renderUrlCell(PHPForge\Debug\View\History\HistoryRow $row): stringRenders the URL column cell with a hover-truncate wrapper.