MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

RunHelp

MMO\admin\monitoring · 1 symbole · générée le 30 Nov 2026

class

RunHelp

RunHelp.php:21

What one of the project's runs (ProjectRuns::RUNS) does, for the ? of its button (<mmo-hub-run>): a few sentences on its principle, a diagram when one helps (DIAGRAMS: one drawing serves several runs, each lighting its own steps), the command line that does the same, and -- for a run of admin.php -- its command's own description.

class MMO\admin\monitoring\RunHelp
Espace de noms
MMO\admin\monitoring
A diagram is an SVG of `help/`, styled by the element: a box is a `<g class="node {kind}" data-step="{step}">` (`here`: this machine, `site`: a target, `bad`: what replaces or undoes, `base`: the rest), each `<text>` an English label translated here.
RunHelp::For('ship')['steps']; // ['checks', 'install', 'build', 'assert', 'ship']

Index

DIAGRAMSdiagram => the runs it explains
HELPrun => text (its principle, in English), diagram (one of DIAGRAMS), steps (the diagram's steps it lights: none lights them all), command (admin.php's command it runs, when its name is …
STYLESThe styles of a diagram on a page (Html), in mmo.client's design system's variables: the same as <mmo-hub-run>'s, which its shadow root keeps
Description($command) static
Diagram($diagram, $steps) static
For($run) static
Html($run) staticThe same as For, for a page that is not <mmo-hub-run>'s (the root hub's command forms): its ? and, in a <template> right after it, what it shows -- the page moves it into its dialog.

Constantes3

DIAGRAMS

diagram => the runs it explains

const DIAGRAMS = ['release', 'releases', 'backups', 'data-sync', 'verify', 'sync']

HELP

run => text (its principle, in English), diagram (one of DIAGRAMS), steps (the diagram's steps it lights: none lights them all), command (admin.php's command it runs, when its name is not the run's; false for none)

const HELP = […37 items]

STYLES

The styles of a diagram on a page (Html), in mmo.client's design system's variables: the same as <mmo-hub-run>'s, which its shadow root keeps

const STYLES = ' .run-help-diagram {margin: 0 0 var(--mmo-space-sm);} .run-help-diagram svg {display: block; width: 100%; height: auto; color: var(--mmo-color-text-3); font-family: inherit;} .run-help-diagram svg text {fill: var(--mmo-color-text); font-size: 14px; font-weight: 500; text-anchor: middle; dominant-baseline: central;} .run-help-diagram svg text.ts {fill: var(--mmo-color-text-2); font-size: 12px; font-weight: 400;} .run-help-diagram svg text.start {text-anchor: start;} .run-help-diagram svg text.end {text-anchor: end;} .run-help-diagram svg rect {stroke-width: 1;} .run-help-diagram svg .here rect {fill: var(--mmo-color-brand-soft); stroke: var(--mmo-color-brand);} .run-help-diagram svg .site rect {fill: color-mix(in srgb, var(--mmo-color-viz-2) 14%, var(--mmo-color-surface)); stroke: var(--mmo-color-viz-2);} .run-help-diagram svg .bad rect {fill: var(--mmo-color-bad-soft); stroke: var(--mmo-color-bad);} .run-help-diagram svg .base rect, .run-help-diagram svg .current rect {fill: var(--mmo-color-surface-2); stroke: var(--mmo-color-line-strong);} .run-help-diagram svg rect.frame {fill: none; stroke: var(--mmo-color-line-strong); stroke-dasharray: 5 4;} .run-help-diagram svg rect.dashed, .run-help-diagram svg path.dashed {stroke-dasharray: 4 3;} .run-help-diagram svg path.arr {fill: none; stroke: currentColor; stroke-width: 1.5;} .run-help-diagram svg path.strong {stroke: var(--mmo-color-text-2);} .run-help-diagram svg path.leader {fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 3;} .run-help-diagram svg[data-focus] .node:not(.on) {opacity: 0.3;} .run-help-diagram svg[data-focus] .node.on rect {stroke-width: 2.5;} .run-help-diagram svg[data-focus] .node.on path.arr {stroke: var(--mmo-color-brand); stroke-width: 2.5;} .run-help-line, .run-help-details {font-size: var(--mmo-text-sm, 14px); color: var(--mmo-color-text-2);} .run-help-details p {white-space: pre-line;}'

Méthodes4

Diagram($diagram, $steps)

staticRunHelp.php:182
static function Diagram(string $diagram, array $steps = []): string
$diagramstringone of DIAGRAMS
$steps = []arraythe steps to light: the others are dimmed (none: all of them lit)
retournestringthe diagram's SVG, its labels translated

For($run)

staticRunHelp.php:112
static function For(string $run): array
$runstringone of ProjectRuns::RUNS
retournearraystring, label: string, text: string, diagram: ?string, steps: list<string>, svg: ?string, line: string, details: ?string} what its ? shows, translated: svg the diagram, its steps lit
lèvea run there is not

Html($run)

staticRunHelp.php:137

The same as For, for a page that is not <mmo-hub-run>'s (the root hub's command forms): its ? and, in a <template> right after it, what it shows -- the page moves it into its dialog. The diagram's classes are the element's: STYLES.

static function Html(string $run): string
$runstringone of ProjectRuns::RUNS
retournestringthe button and its template