tAdminApi
MMO\editor\controllers · 1 symbole · générée le 27 Oct 2026
tAdminApi
tAdminApi.php:16What the backoffice's apis share (PagesController, SectionTypesController): a logged-in user, the session's CSRF token for what changes something -- one token for both, PagesController::Token --, a json body, a 422 that says what is wrong field by field, and an error that says why in meta.error.
- Espace de noms
MMO\editor\controllers
Index
| body($route) | ||
| checkToken($route) | Make sure a request changing something comes from a page of the site: it has the session's token, or is authenticated by an Authorization header (which a browser does not send on its own) | |
| explainErrors($route) | An error says why in the answer's body too (meta.error): http/2 has no status text to carry it | |
| invalid($route, $e) | ||
| setStatus($route, $status) | ||
| user($route) |
Méthodes6
body($route)
tAdminApi.php:52checkToken($route)
tAdminApi.php:42Make sure a request changing something comes from a page of the site: it has the session's token, or is authenticated by an Authorization header (which a browser does not send on its own)
explainErrors($route)
tAdminApi.php:18An error says why in the answer's body too (meta.error): http/2 has no status text to carry it
invalid($route, $e)
tAdminApi.php:59| $route | Route | |
| $e | eInvalidPage | |
| retourne | array | array<string, string>} a 422 saying what is wrong |