ChecklistController
MMO\admin\controllers · 1 symbol · generated 5 Oct 2026
ChecklistController
ChecklistController.php:44The release checklists: what to look at before a version is committed or shipped, each one a JSON file of
- Namespace
MMO\admin\controllers- Extends
- aDataController
- Implements
- iRoutable
- See
$folder(Checklistfor the file,ChecklistBuilderfor its recipe).{MMO\admin}/pages/checklistsshows them.
Index
| NAME | a name: what its file is called, nothing that leaves the folder | |
| anonymous | ||
| author | ||
| boards | ||
| checklists | ||
| default | ||
| doneComment | ||
| folder | ||
| scope | ||
| verifiedLabel | ||
| answer($route, $list, $saving) | ||
| board($list) | ||
| ConnectRoutes($routes, $config) static | ||
| declare($name) | Make a declared checklist when it has no file yet, and bring it up to its declaration: its title, members... | |
| edit($route, $action, $write) | Run $action on the route's checklist, locked: what it changes is written back when $write. | |
| fail($route, $status, $error) | ||
| getAuthor() | ||
| guard($route) | ||
| routeBuild($route) | Rebuild the items from the recipe: what was checked stays checked while its item is still there. | |
| routeCheck($route) | Check an item, or uncheck it: a ticket all of whose items are checked gets $verifiedLabel, and loses it when one is unchecked. | |
| routeDone($route) | Move a verified ticket to the board's first done status, and say so in its discussion with what was checked. | |
| routeList($route) | ||
| routeLoad($route) | ||
| routeReset($route) | Start a new round: every box unchecked, a line of the history saying how far the last one got. | |
| routeSave($route) | Create a checklist, or change it: what the body gives replaces what the checklist had (items keep their checks). | |
| setBuilt($list, $builder, $declaration) | Give a checklist the items $builder builds, and what its items file says besides (members, types, groups' icons): the declaration's own win. | |
| setStatus($route, $status) | ||
| syncBoard($list) | give $verifiedLabel to the verified tickets, take it from the others the checklist names |
Constants1
NAME
a name: what its file is called, nothing that leaves the folder
Properties9
anonymous
- Type
- bool
author
boards
checklists
- Type
- array
default
doneComment
- Type
- string
folder
- Type
- string
scope
verifiedLabel
- Type
- array
Methods18
answer($route, $list, $saving)
ChecklistController.php:225| $route | Route | |
| $list | Checklist | |
| $saving = 0 | int | 1 when the checklist is about to be written: the version it will have |
| returns | array | the checklist (Checklist), with name, declared (one of $checklists), progress and, when it follows a board, tickets: each ticket its items name, its title, its status and how many of its items are checked |
board($list)
ChecklistController.php:247ConnectRoutes($routes, $config)
staticChecklistController.php:80- See
$anonymous: every route is mmo.oauth'sanonymouswhen the configuration says so
declare($name)
ChecklistController.php:259Make a declared checklist when it has no file yet, and bring it up to its declaration: its title, members... and its items, built again when what they come from changed. Written only when something did.
| $name | string | one of $checklists |
| returns | void |
edit($route, $action, $write)
ChecklistController.php:317Run $action on the route's checklist, locked: what it changes is written back when $write.
fail($route, $status, $error)
ChecklistController.php:339getAuthor()
ChecklistController.php:302guard($route)
ChecklistController.php:327routeBuild($route)
ChecklistController.php:147Rebuild the items from the recipe: what was checked stays checked while its item is still there.
routeCheck($route)
ChecklistController.php:164Check an item, or uncheck it: a ticket all of whose items are checked gets $verifiedLabel, and loses it when one is unchecked.
routeDone($route)
ChecklistController.php:199Move a verified ticket to the board's first done status, and say so in its discussion with what was checked.
routeList($route)
ChecklistController.php:93routeLoad($route)
ChecklistController.php:113routeReset($route)
ChecklistController.php:183Start a new round: every box unchecked, a line of the history saying how far the last one got.
routeSave($route)
ChecklistController.php:124Create a checklist, or change it: what the body gives replaces what the checklist had (items keep their checks).
setBuilt($list, $builder, $declaration)
ChecklistController.php:286Give a checklist the items $builder builds, and what its items file says besides (members, types, groups' icons): the declaration's own win.
| $list | Checklist | |
| $builder | ChecklistBuilder | |
| $declaration = [] | array | as $checklists |
| returns | void |
setStatus($route, $status)
ChecklistController.php:344syncBoard($list)
ChecklistController.php:238give $verifiedLabel to the verified tickets, take it from the others the checklist names
Inherited members (62)
| Constants | Declared by | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
COLORS | aDataController | Named color palettes for chart/report endpoints, e.g. | |
CRITICAL | iLogLevel | Critical: Critical conditions. | |
DEBUG | iLogLevel | Debug: Detailed debug information. | |
DEEP | iLogLevel | debug everything with arguments | |
EMERGENCY | iLogLevel | Emergency: System is unusable. | |
ERROR | iLogLevel | Error: Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ERROR_PLUS | iLogLevel | Mask for all error | |
FATAL | iLogLevel | Mask for all fatal error | |
INFO | iLogLevel | Info: Interesting events. | |
INFO_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
MEMORY | iLogLevel | include backtrace object | |
NOTICE | iLogLevel | Notice: Normal but significant events. | |
NOTICE_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
TRACE | iLogLevel | include backtrace as origins | |
WARNING | iLogLevel | Warning: Exceptional occurrences that are not errors. | |
WARNING_PLUS | iLogLevel | Mask for all errors and warnings |
| Properties | Declared by | Description | |
|---|---|---|---|
repositories | aDataController | ||
verbosity | aModule |
| Methods | Declared by | Description | |
|---|---|---|---|
alert($message, $context) | aModule | Action must be taken immediately. | |
backtraces($message, $context) | aModule | Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it). | |
Configure($config) | aModule | Merge $config into this module's configuration in the shared Configuration. | |
critical($message, $context) | aModule | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
debug($message, $context) | aModule | Detailed debug information. | |
debugName() | aModule | Human-readable identifier used as the default {origin} in this instance's log messages. | |
DefaultConfig() | aModule | The config a module starts from before anything loaded via Configuration is merged in. | |
emergency($message, $context) | aModule | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
error($message, $context) | aModule | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ExtractRoutes($config) | aController | Extract all the APIRoute from this class, regardless of the fact they are registered in the application | |
getMainRepository() | aDataController | ||
getRepositories() | aDataController | ||
getRepository($repo) | aDataController | ||
getVerbosity() | aModule | ||
HasRoutes() | aController | Tells if any APIRoute are registered in the application | |
info($message, $context) | aModule | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
Instantiate($config) | aModule | (Re)create the shared instance immediately, configured with $config merged into the class's existing config. | |
IsShared() | aModule | ||
Link($method, $data) | aController | Build a Link (URL + label/icon/description/title, taken from the route's APIRoute metadata) for a registered route. | |
log($level, $message, $context) | aModule | Logs with an arbitrary level. | |
notice($message, $context) | aModule | Normal but significant events. | |
offsetExists($key) | aModule | \ArrayAccess::offsetExists -- tells whether $key is a declared property at all, regardless of whether it is currently readable/writable through array access. | |
offsetGet($key) | aModule | \ArrayAccess::offsetGet -- reads a property directly, unless it has a #[Serialize(serialize: 'methodName')] attribute, in which case that zero-argument method is called instead (e.g. | |
offsetSet($key, $value) | aModule | \ArrayAccess::offsetSet -- sets a property directly, unless it has a #[Serialize(unserialize: 'methodName')] attribute, in which case that method is called with $value instead (e.g. | |
offsetUnset($key) | aModule | \ArrayAccess::offsetUnset -- equivalent to $module[$key] = null. | |
onRoute($route) | aDataController | Same as aController::onRoute, plus forcing the response to JSON (Response::Json) for every route this controller claims. | |
Route($method) | aController | Get a registered APIRoute WARNING: if this class was not registered in the application, it will return null. | |
Routes() | aController | Get a list of registered APIRoutes (from this class) in the application WARNING: if this class was not registered in the application, it will return an empty array. | |
serialize($path, $serializer) | aModule | \MMO\core\interfaces\iSerializable::serialize -- exports every property (via | |
setRepositories($repositories) | aDataController | Register the repositories this controller can query, keyed by name (e.g. | |
setVerbosity($verb) | aModule | Set the current verbosity mask, replacing whatever it was before. | |
Shared() | aModule | Get the shared instance, creating (and configuring) it on first call. | |
testVerbosity($level) | aModule | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
traitUnshare($serialize) | aModule | Remove the shared instance, so the next Shared() call creates a fresh one. | |
unserialize($data, $path, $instances) | aModule | \MMO\core\interfaces\iSerializable::unserialize -- merges $data onto DefaultConfig, runs it through the (possibly overridden) constructor, then applies each resulting value to its property (via | |
Unshare($serialize) | aModule | Like tSingleton::Unshare, but also disconnects this module's instance from every event it was listening to (via Event::DisconnectListeners) before dropping it. | |
Url($method, $data) | aController | Build the URL for a registered route, filling in any {placeholder} from $data. | |
warning($message, $context) | aModule | Exceptional occurrences that are not errors. | |
__construct($config) | aModule | protected constructor, so it is not possible to do new Module(...) called by the serialization process just before being injected with data. | |
__wakeup() | aController | Called automatically right after the controller's shared instance is built (aModule::unserialize): registers onRoute as a Route listener with a low priority (-10), so it… |