Upgrade loop Executes upgrade batches for a given duration of time.
More...
Upgrade loop Executes upgrade batches for a given duration of time.
Definition at line 15 of file Loop.php.
Elgg\Upgrade\Loop::__construct |
( |
protected\ElggUpgrade |
$upgrade, |
|
|
protected Result |
$result, |
|
|
protected Progress |
$progress, |
|
|
Logger |
$logger |
|
) |
| |
Constructor.
- Parameters
-
- Exceptions
-
Definition at line 42 of file Loop.php.
Elgg\Upgrade\Loop::canContinue |
( |
|
$started, |
|
|
int |
$max_duration = null |
|
) |
| |
|
protected |
Check if the loop cand and should continue.
- Parameters
-
float | $started | Timestamp of the loop initiation |
int | null | $max_duration | Maximum loop duration |
- Returns
- bool
Definition at line 188 of file Loop.php.
Elgg\Upgrade\Loop::isCompleted |
( |
| ) |
|
|
protected |
Check if upgrade has completed.
- Returns
- bool
Definition at line 205 of file Loop.php.
Elgg\Upgrade\Loop::loop |
( |
int |
$max_duration = null | ) |
|
Run upgrade loop for a preset number of seconds.
- Parameters
-
int | null | $max_duration | Maximum loop duration |
- Returns
- void
Definition at line 71 of file Loop.php.
Elgg\Upgrade\Loop::report |
( |
| ) |
|
|
protected |
Report loop results.
- Returns
- void
Definition at line 150 of file Loop.php.
Elgg\Upgrade\Loop::runBatch |
( |
ProgressBar |
$progress | ) |
|
|
protected |
Run batch.
- Parameters
-
ProgressBar | $progress | Progress bar helper |
- Returns
- void
Definition at line 114 of file Loop.php.
Elgg\Upgrade\Loop::$batch |
|
protected |
int Elgg\Upgrade\Loop::$count |
|
protected |
int Elgg\Upgrade\Loop::$max_duration |
|
protected |
int Elgg\Upgrade\Loop::$offset |
|
protected |
int Elgg\Upgrade\Loop::$processed |
|
protected |
The documentation for this class was generated from the following file: