aDatabaseTask
MMO\admin\classes · 1 symbol · generated 5 Oct 2026
aDatabaseTask
aDatabaseTask.php:18Shared ground for the tasks that touch a target's database (BackupTask,
- Namespace
MMO\admin\classes- Extends
- aDeployTask
- See
RestoreTask,MigrateTask).
Index
| REQUIRED | ||
| getDatabase($context) | ||
| getRepository($context) | ||
| getShell($context) | ||
| snapshot($context) | Take a snapshot of the target's database and record it on the context, so whatever comes next is reversible. |
Constants1
REQUIRED
Methods4
getDatabase($context)
aDatabaseTask.php:46getRepository($context)
aDatabaseTask.php:27getShell($context)
aDatabaseTask.php:86snapshot($context)
aDatabaseTask.php:61Take a snapshot of the target's database and record it on the context, so whatever comes next is reversible. Every mutating database task calls this FIRST -- in the old script this was a habit (route_reset did it by hand, restore and patch did not); here it is the only way in.
Inherited members (43)
| Constants | Declared by | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
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 | |
|---|---|---|---|
verbosity | aDeployTask |
| Methods | Declared by | Description | |
|---|---|---|---|
alert($message, $context) | aDeployTask | Action must be taken immediately. | |
apply($context) | aDeployTask | Perform the task. Must throw on failure: returning normally is taken to mean the step ran. | |
backtraces($message, $context) | aDeployTask | 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). | |
critical($message, $context) | aDeployTask | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
debug($message, $context) | aDeployTask | Detailed debug information. | |
debugName() | aDeployTask | ||
emergency($message, $context) | aDeployTask | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
error($message, $context) | aDeployTask | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
getDescription() | aDeployTask | ||
getName() | aDeployTask | ||
getVerbosity() | aDeployTask | ||
info($message, $context) | aDeployTask | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
isChange() | aDeployTask | Whether running this task CHANGES anything. | |
isNeeded($context) | aDeployTask | Whether this task has anything to do for this target -- e.g. | |
isRollbackCritical() | aDeployTask | ||
log($level, $message, $context) | aDeployTask | Logs with an arbitrary level. | |
notice($message, $context) | aDeployTask | Normal but significant events. | |
plan($context) | aDeployTask | Describe what apply would do, WITHOUT doing it. | |
rollback($context) | aDeployTask | Undo this task. Called by the runner, in reverse order, for every task already applied when a later one failed. | |
setVerbosity($verb) | aDeployTask | Set the current verbosity mask, replacing whatever it was before. | |
testVerbosity($level) | aDeployTask | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
verify($context) | aDeployTask | Check, by looking at the target, that the task really took effect. | |
warning($message, $context) | aDeployTask | Exceptional occurrences that are not errors. |