Cleaners
3 months ago
Exceptions
5 years ago
Cancel.php
7 months ago
CancelUpdate.php
7 months ago
Cloning.php
2 weeks ago
CloningProcess.php
1 year ago
Data.php
7 months ago
Database.php
3 months ago
Delete.php
4 months ago
Directories.php
4 months ago
Files.php
1 week ago
Finish.php
2 months ago
Job.php
2 weeks ago
JobExecutable.php
7 months ago
Logs.php
3 years ago
PreserveDataFirstStep.php
1 month ago
PreserveDataSecondStep.php
1 month ago
ProcessLock.php
1 year ago
Scan.php
4 months ago
SearchReplace.php
5 months ago
TotalStepsAreNumberOfTables.php
5 years ago
Updating.php
2 weeks 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 |