SiteRestoreTask
MMO\admin\tasks · 1 symbole · générée le 30 Nov 2026
SiteRestoreTask
SiteRestoreTask.php:16Put a backup set's shared files or configuration back on its site (SiteBackupTask): what is there now is archived first -- a set of its own, named after now --, then each path the set holds replaces the site's, and on a failure the archive of before is put back. The databases are RestoreTask's.
- Espace de noms
MMO\admin\tasks- Étend
- aDeployTask
Index
| at | ||
| before | ||
| localFolder | ||
| parts | ||
| apply($context) | ||
| getDescription() | ||
| isRollbackCritical() | ||
| locate($context, $name) | ||
| paths($context, $part) | ||
| plan($context) | ||
| rollback($context) | Put back what the site held before (apply's archives). | |
| __construct($at, $parts, $localFolder) |
Propriétés4
at
- Type
- int
before
- Type
- array
localFolder
parts
- Type
- array
Méthodes8
apply($context)
SiteRestoreTask.php:47getDescription()
SiteRestoreTask.php:31| retourne | string |
isRollbackCritical()
SiteRestoreTask.php:80| retourne | bool |
locate($context, $name)
SiteRestoreTask.php:86paths($context, $part)
SiteRestoreTask.php:34plan($context)
SiteRestoreTask.php:38rollback($context)
SiteRestoreTask.php:71Put back what the site held before (apply's archives).
__construct($at, $parts, $localFolder)
SiteRestoreTask.php:25Membres hérités (38)
| Constantes | Déclaré par | 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 |
| Propriétés | Déclaré par | Description | |
|---|---|---|---|
verbosity | aDeployTask |
| Méthodes | Déclaré par | Description | |
|---|---|---|---|
alert($message, $context) | aDeployTask | Action must be taken immediately. | |
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. | |
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. | |
log($level, $message, $context) | aDeployTask | Logs with an arbitrary level. | |
notice($message, $context) | aDeployTask | Normal but significant events. | |
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. |