Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
plesk
/
background-tasks
/
src
/
Step
/
File Content:
StepInterface.php
<?php // Copyright 1999-2024. WebPros International GmbH. All rights reserved. namespace BackgroundTasks\Step; use BackgroundTasks\DataStorage\TaskDataStorageInterface; use BackgroundTasks\Progress\StepProgressInterface; use BackgroundTasks\Progress\TaskProgressInterface; interface StepInterface { const STATUS_NOT_STARTED = 'not_started'; const STATUS_STARTED = 'started'; const STATUS_RUNNING = 'running'; const STATUS_CANCELED = 'canceled'; const STATUS_ERROR = 'error'; const STATUS_DONE = 'done'; /** * @param StepProgressInterface $progress * @param TaskProgressInterface $taskProgress * @param TaskDataStorageInterface $taskData */ public function run(StepProgressInterface $progress, TaskProgressInterface $taskProgress, TaskDataStorageInterface $taskData); // TODO: rollback? /** * @return string Unique string, used as key in object of all steps */ public function getCode(); /** * @return string */ public function getTitle(); /** * @return string */ public function getIcon(); /** * @return bool */ public function isHidden(); }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
HiddenStepTrait.php
439 bytes
0644
RollbackableStepInterface.php
354 bytes
0644
StepInterface.php
1172 bytes
0644
StepMetaInfo.php
1613 bytes
0644
N4ST4R_ID | Naxtarrr