PhpInfoView
API reference › Debug Core › PhpInfo › PhpInfoView
Top-level typed view-model for the phpinfo page.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$compactModules readonly constructor | list<PhpInfoCompactModule> | Small modules summarized in the Overview because they expose only one or two informational values and no directives, statistics, notes, or other tables. | PhpInfoView |
$configureCommand readonly constructor | string | Configure Command value (multi-line shell flags); empty when not reported by phpinfo(). | PhpInfoView |
$modulesHtml readonly constructor | string | Modules HTML produced by phpinfo() (already wrapped in <section> chrome by the normalizer); empty string when no module heading is present in the output. | PhpInfoView |
$sections readonly constructor | list<PhpInfoSection> | Overview hero sections (‘PHP version’ first with the ‘PHP_VERSION’ headline, then Build / Configuration / Capabilities / Streams). | PhpInfoView |
$tocEntries readonly constructor | list<PhpInfoTocEntry> | TOC entries in display order (Overview first, then one entry per phpinfo module heading). | PhpInfoView |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the composed phpinfo page view. | PhpInfoView |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(array $sections, array $tocEntries, array $compactModules, string $modulesHtml, string $configureCommand)Creates the composed phpinfo page view.
Parameters
| Parameter | Type | Description |
|---|---|---|
$sections | array | |
$tocEntries | array | |
$compactModules | array | |
$modulesHtml | string | |
$configureCommand | string |