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

DeveloperHome

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

class

DeveloperHome

DeveloperHome.php:20

What the developer's home (pages/developer/home.phtml) shows besides the board: it only shows and links, never acts.

class MMO\admin\helpers\DeveloperHome
Espace de noms
MMO\admin\helpers
- the boards of the folder, each with its columns, the old ones folded ([`Boards`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/DeveloperHome.md#developerhome-boards)); - the blocks the pages of `developer/` declare by a `home` key of their `index.json` -- mmo.admin's or the application's: `{"counter": "api/x/count.json", "order": 10}`, the counter an url answering `{count, level?, text?}`, which `<mmo-developer-block>` reads ([`Blocks`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/DeveloperHome.md#developerhome-blocks)); - every page of the menu, as a grid of tools ([`Tools`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/DeveloperHome.md#developerhome-tools)); - the commands of `admin.php` worth copying: mmo.admin's, then the ones the application's `developer/index.json` lists in its own `home` (`{"commands": [{"command": "status", "description": "..."}]}`) ([`Commands`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/DeveloperHome.md#developerhome-commands)). mmo.admin does not depend on mmo.client: the page hands its menu's pages as arrays ([`Pages`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/DeveloperHome.md#developerhome-pages)).

Index

OLD_DAYSa board unchanged for longer than this many days, other than the developer's, is folded (DeveloperController's oldBoardDays)
Blocks($pages) static
Boards($folder, $current, $page, $published, $oldDays, $now) static
Commands($developer, $home) static
Pages($children) static
Tools($pages) static

Constantes1

OLD_DAYS

a board unchanged for longer than this many days, other than the developer's, is folded (DeveloperController's oldBoardDays)

const OLD_DAYS = 30

Méthodes5

Blocks($pages)

staticDeveloperHome.php:49
static function Blocks(array $pages): array
$pagesarrayPages
retournearraystring, title: string, icon: ?string, description: ?string, url: string, counter: ?string, order: int}> the pages declaring a home block, by their order then their title

Boards($folder, $current, $page, $published, $oldDays, $now)

staticDeveloperHome.php:105
static function Boards( string $folder, ?string $current, string $page, ?callable $published = null, int $oldDays = self::OLD_DAYS, ?int $now = null ): array
$folderstringwhere the boards are ({root}/boards, resolved)
$currentnull | stringthe developer's board, first and never folded
$pagestringthe boards' page (?board= opens one)
$published = nullnull | callablefn(array $file): bool whether this instance shows a board (BoardController's)
$oldDays = self::OLD_DAYSinthow many days unchanged make a board old
$now = nullnull | intthe time it is (a test)
retournearraystring, title: string, url: string, current: bool, old: bool, updatedAt: ?string, total: int, open: int, columns: list<array{id: string, label: string, type: ?string, count: int}>}> the boards, the developer's first, then the others by their last change, the newest first; old the ones nothing is open on, or unchanged for $oldDays days

Commands($developer, $home)

staticDeveloperHome.php:75
static function Commands( ?MMO\admin\controllers\DeveloperController $developer, ?array $home = null ): array
$developernull | DeveloperControllerthe application's, for the servers whose inbox it pulls
$home = nullnull | arraythe home of the application's developer/index.json: its commands
retournearraystring, description: string}> what to copy, php admin.php first: read only, or a dry run -- the home runs nothing

Pages($children)

staticDeveloperHome.php:30
static function Pages(iterable $children): array
$childreniterablethe pages of the developer's folder (mmo.client's Content), with path, label, title, icon, description, inMenu, visible, home and their url
retournearraystring, title: string, icon: ?string, description: ?string, url: string, inMenu: bool, home: ?array}> the ones the user may open, the home itself left out