Primordyx Framework Documentation

CargoInspector
in package

Class CargoInspector

A quick little UI to show what's in cargo. BE CAREFUL! This will show to the end user. This is really meant for testing only.

Tags
since
1.0.0

Table of Contents

Methods

render()  : string
Renders a complete HTML interface for inspecting all Cargo container instances
renderKeyRow()  : string
Renders a single table row for a Cargo container key-value pair

Methods

render()

Renders a complete HTML interface for inspecting all Cargo container instances

public static render() : string

Generates a comprehensive debug view showing:

  • All container instances with their keys, values, and metadata
  • Container lock status and protection information
  • Snapshot/version history for each container
  • Recent activity logs with timestamps
  • Interactive features (collapsible values, expired key filtering)
Tags
since
1.0.0
example
echo CargoInspector::render();
// Outputs full HTML debugging interface
Return values
string

Complete HTML document with embedded CSS and JavaScript

renderKeyRow()

Renders a single table row for a Cargo container key-value pair

private static renderKeyRow(string $key, mixed $value[, bool $isProtected = false ]) : string

Generates an HTML table row with:

  • Key name in first column
  • Collapsible value display with toggle functionality
  • Metadata column showing expiration, protection, size/count info
  • Proper styling classes for expired/protected entries
Parameters
$key : string

The container key name

$value : mixed

The stored value (may be wrapped with expiration data)

$isProtected : bool = false

Whether this key is write-protected

Tags
since
1.0.0
Return values
string

HTML table row () with embedded data and styling


        
On this page

Search results