Upgrade service for Elgg.
More...
Upgrade service for Elgg.
Definition at line 23 of file UpgradeService.php.
◆ __construct()
◆ down()
Elgg\UpgradeService::down |
( |
| ) |
|
|
protected |
◆ executeUpgrade()
Elgg\UpgradeService::executeUpgrade |
( |
\ElggUpgrade |
$upgrade, |
|
|
?int |
$max_duration = null |
|
) |
| |
Call the upgrade's run() for a specified period of time, or until it completes.
- Parameters
-
\ElggUpgrade | $upgrade | Upgrade to run |
int | null | $max_duration | Maximum duration in seconds Set to 0 to execute an entire upgrade |
- Returns
- Result
Definition at line 276 of file UpgradeService.php.
◆ getCompletedUpgrades()
Elgg\UpgradeService::getCompletedUpgrades |
( |
bool |
$async = true | ) |
|
Get completed (async) upgrades ordered by recently completed first.
- Parameters
-
bool | $async | Include async upgrades |
- Returns
- \ElggUpgrade[]
Definition at line 223 of file UpgradeService.php.
◆ getPendingUpgrades()
Elgg\UpgradeService::getPendingUpgrades |
( |
bool |
$async = true | ) |
|
Get pending async upgrades.
- Parameters
-
bool | $async | Include async upgrades |
- Returns
- \ElggUpgrade[]
Definition at line 189 of file UpgradeService.php.
◆ run()
Elgg\UpgradeService::run |
( |
|
$upgrades = null | ) |
|
Run the upgrade process.
- Parameters
-
- Returns
- PromiseInterface
Definition at line 140 of file UpgradeService.php.
◆ runUpgrades()
Elgg\UpgradeService::runUpgrades |
( |
|
$upgrades | ) |
|
|
protected |
Run system and async upgrades.
- Parameters
-
- Returns
- PromiseInterface
Definition at line 103 of file UpgradeService.php.
◆ up()
Elgg\UpgradeService::up |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: