Cleaners
5 years ago
Exceptions
5 years ago
Cancel.php
2 years ago
CancelUpdate.php
2 years ago
Cloning.php
2 years ago
CloningProcess.php
2 years ago
Data.php
2 years ago
Database.php
2 years ago
Delete.php
2 years ago
Directories.php
2 years ago
Files.php
2 years ago
Finish.php
1 year ago
Job.php
2 years ago
JobExecutable.php
2 years ago
Logs.php
3 years ago
PreserveDataFirstStep.php
3 years ago
PreserveDataSecondStep.php
2 years ago
ProcessLock.php
2 years ago
Scan.php
2 years ago
SearchReplace.php
2 years ago
TotalStepsAreNumberOfTables.php
5 years ago
Updating.php
2 years ago
TotalStepsAreNumberOfTables.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Backend\Modules\Jobs; |
| 4 | |
| 5 | trait TotalStepsAreNumberOfTables |
| 6 | { |
| 7 | /** |
| 8 | * Calculate Total Steps in This Job and Assign It to $this->options->totalSteps |
| 9 | * @return void |
| 10 | */ |
| 11 | protected function calculateTotalSteps() |
| 12 | { |
| 13 | $this->options->totalSteps = $this->total === 0 ? 1 : $this->total; |
| 14 | } |
| 15 | } |
| 16 |