MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

DeveloperMode

MMO\admin\helpers · 1 symbol · generated 27 Oct 2026

class

DeveloperMode

DeveloperMode.php:21

The developer mode of an application: a layer of mmo.client's display modes (dev), which mmo.admin brings.

class MMO\admin\helpers\DeveloperMode
Namespace
MMO\admin\helpers
- the layer itself, `dev`, offered to whoever holds `modes.dev` (mmo.oauth), toggled by `ctrl+alt+d`; - the scopes it asks ([`DeveloperController`](https://mmoframework.fr/en/documentation/mmo.admin/php/controllers/DeveloperController.md#developercontroller)'s constants), listed in the roles' editor; - the « Developer » menu (`developer/`): mmo.admin's own pages -- home, boards, checklists -- next to the ones the application adds in a `developer/` folder of its own (its logs, its database...), shown with the layer on only; - the page's `MMO.config.developer`: what the layer may show and do on it, which `developer.js` draws -- the page's tickets and checks, the ticket filed from it. mmo.admin depends on neither mmo.client nor mmo.oauth: what it gives them is connected once both are there, at the first route ([`Connect`](https://mmoframework.fr/en/documentation/mmo.admin/php/helpers/DeveloperMode.md#developermode-connect), from the bootstrap).

Index

LAYERthe layer's id
SCOPEthe scope turning it on
AddPages($contents) staticThe « Developer » menu: mmo.admin's pages (pages/developer), under the application's own developer/ folder when it has one -- a page of the same name is the application's.
AddScopes($request) static
Connect() staticConnect the developer mode to mmo.client and mmo.oauth, when they are there: once.
Controller() static
Member() static
OnDocumentInit($event) staticGive the page what the developer layer needs (MMO.config.developer), with the layer on; and to every logged in user the route of the bug button (MMO.config.paths.developerReport).

Constants2

LAYER

the layer's id

const LAYER = 'dev'

SCOPE

the scope turning it on

const SCOPE = 'modes.dev'

Methods6

AddPages($contents)

staticDeveloperMode.php:74

The « Developer » menu: mmo.admin's pages (pages/developer), under the application's own developer/ folder when it has one -- a page of the same name is the application's.

static function AddPages(object $contents): void
$contentsobject
returnsvoid

Connect()

staticDeveloperMode.php:28

Connect the developer mode to mmo.client and mmo.oauth, when they are there: once.

static function Connect(): void
returnsvoid

Member()

staticDeveloperMode.php:137
static function Member(): ?string
returnsnull | stringthe logged in user's name, as a checklist's members call them (their username)

OnDocumentInit($event)

staticDeveloperMode.php:102

Give the page what the developer layer needs (MMO.config.developer), with the layer on; and to every logged in user the route of the bug button (MMO.config.paths.developerReport).

static function OnDocumentInit(object $event): void
$eventobject
returnsvoid