HistoryRow
API reference › Debug Core › View › History › HistoryRow
Typed view-model for one captured-request row in the History grid.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$ajax readonly constructor | bool | true when the captured request was an AJAX request. | HistoryRow |
$excessiveCallersCount readonly constructor | int | Number of callers issuing too many DB calls. ‘0’ when not flagged. | HistoryRow |
$ip readonly constructor | string | Client IP address. Empty when not captured. | HistoryRow |
$mailCount readonly constructor | int | Number of mail messages sent during the request. ‘0’ when not captured. | HistoryRow |
$method readonly constructor | string | HTTP method (‘GET’, ‘POST’, …) or ‘COMMAND’ for console runs. Empty when not captured. | HistoryRow |
$peakMemory readonly constructor | int| | Peak memory in bytes; null when not captured. | HistoryRow |
$processingTime readonly constructor | float| | Processing time in seconds (float); null when not captured. | HistoryRow |
$sqlCount readonly constructor | int | Number of SQL queries executed during the request. ‘0’ when not captured. | HistoryRow |
$statusCode readonly constructor | int | Response status code; 0 when not captured. | HistoryRow |
$tag readonly constructor | string | Request tag (hex hash); empty when not captured. | HistoryRow |
$time readonly constructor | float | Request timestamp (unix seconds, may be float for sub-second precision); ‘0.0’ when not captured. | HistoryRow |
$timeCompact readonly constructor | string | Formatted compact time (‘HH:MM:SS’); empty when $time === 0.0. | HistoryRow |
$url readonly constructor | string | Full request URL. Empty when not captured. | HistoryRow |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a captured-request row for the History grid. | HistoryRow |
fromSummary() static | Projects a manifest entry into the row the History grid renders. | HistoryRow |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $tag, string $method, string $url, int $statusCode, float $time, string $timeCompact, float|null $processingTime, int|null $peakMemory, string $ip, int $sqlCount, int $mailCount, int $excessiveCallersCount, bool $ajax)Creates a captured-request row for the History grid.
Parameters
| Parameter | Type | Description |
|---|---|---|
$tag | string | |
$method | string | |
$url | string | |
$statusCode | int | |
$time | float | |
$timeCompact | string | |
$processingTime | float| | |
$peakMemory | int| | |
$ip | string | |
$sqlCount | int | |
$mailCount | int | |
$excessiveCallersCount | int | |
$ajax | bool |
fromSummary()
Section titled “fromSummary() ”public static function fromSummary(PHPForge\Debug\Storage\RequestSummary $summary): selfProjects a manifest entry into the row the History grid renders.