MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

SiteRestoreTask

MMO\admin\tasks · 1 symbole · générée le 30 Nov 2026

class

SiteRestoreTask

SiteRestoreTask.php:16

Put 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.

class MMO\admin\tasks\SiteRestoreTask extends MMO\admin\classes\aDeployTask
Espace de noms
MMO\admin\tasks
Étend
aDeployTask
A part missing on the server but fetched here (this machine's backups) is uploaded first, as RestoreTask does a dump.

Propriétés4

at

protected int $at
Type
int

before

protected array $before = []
Type
array

localFolder

protected ?string $localFolder
Type
null | string

parts

protected array $parts
Type
array

Méthodes8

locate($context, $name)

SiteRestoreTask.php:86
protected function locate(MMO\admin\helpers\Context $context, string $name): string
$contextContext
$namestring
retournestringa set's part on the target: there already, or uploaded from this machine's backups
lèvewhen it is in neither

__construct($at, $parts, $localFolder)

SiteRestoreTask.php:25
function __construct(int $at, array $parts = ['files', 'config'], ?string $localFolder = null)
$atintthe set's time
$parts = ['files', 'config']arrayfiles, config
$localFolder = nullnull | stringwhere a fetched part may be, here
Membres hérités (38)
ConstantesDéclaré parDescription
ALERTiLogLevelAlert: Action must be taken immediately.
ALLiLogLevelMask for all
ALL_PLUSiLogLeveldebug everything
BACKTRACEiLogLevel
CRITICALiLogLevelCritical: Critical conditions.
DEBUGiLogLevelDebug: Detailed debug information.
DEEPiLogLeveldebug everything with arguments
EMERGENCYiLogLevelEmergency: System is unusable.
ERRORiLogLevelError: Runtime errors that do not require immediate action but should typically be logged and monitored.
ERROR_PLUSiLogLevelMask for all error
FATALiLogLevelMask for all fatal error
INFOiLogLevelInfo: Interesting events.
INFO_PLUSiLogLevelMask for all errors/warning/notices/info
MEMORYiLogLevelinclude backtrace object
NOTICEiLogLevelNotice: Normal but significant events.
NOTICE_PLUSiLogLevelMask for all errors/warning/notices/info
TRACEiLogLevelinclude backtrace as origins
WARNINGiLogLevelWarning: Exceptional occurrences that are not errors.
WARNING_PLUSiLogLevelMask for all errors and warnings
PropriétésDéclaré parDescription
verbosityaDeployTask
MéthodesDéclaré parDescription
alert($message, $context)aDeployTaskAction must be taken immediately.
backtraces($message, $context)aDeployTaskForce-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)aDeployTaskCritical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask.
debug($message, $context)aDeployTaskDetailed debug information.
debugName()aDeployTask
emergency($message, $context)aDeployTaskSystem is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask.
error($message, $context)aDeployTaskRuntime errors that do not require immediate action but should typically be logged and monitored.
getName()aDeployTask
getVerbosity()aDeployTask
info($message, $context)aDeployTaskInteresting events. No-op if INFO is currently filtered out by the verbosity mask.
isChange()aDeployTaskWhether running this task CHANGES anything.
isNeeded($context)aDeployTaskWhether this task has anything to do for this target -- e.g.
log($level, $message, $context)aDeployTaskLogs with an arbitrary level.
notice($message, $context)aDeployTaskNormal but significant events.
setVerbosity($verb)aDeployTaskSet the current verbosity mask, replacing whatever it was before.
testVerbosity($level)aDeployTaskTest whether a given level (or set of levels) is currently enabled by this instance's verbosity mask.
verify($context)aDeployTaskCheck, by looking at the target, that the task really took effect.
warning($message, $context)aDeployTaskExceptional occurrences that are not errors.