Elgg
Version master
|
Upgrade service for Elgg. More...
Public Member Functions | |
__construct (protected Locator $locator, protected Translator $translator, protected EventsService $events, protected Config $config, protected Mutex $mutex, protected SystemMessagesService $system_messages, protected Progress $progress) | |
Constructor. More... | |
run ($upgrades=null) | |
Run the upgrade process. More... | |
getPendingUpgrades (bool $async=true) | |
Get pending async upgrades. More... | |
getCompletedUpgrades (bool $async=true) | |
Get completed (async) upgrades ordered by recently completed first. More... | |
executeUpgrade (\ElggUpgrade $upgrade, int $max_duration=null) | |
Call the upgrade's run() for a specified period of time, or until it completes. More... | |
Protected Member Functions | |
up () | |
Start an upgrade process. More... | |
down () | |
Finish an upgrade process. More... | |
runUpgrades ($upgrades) | |
Run system and async upgrades. More... | |
Definition at line 22 of file UpgradeService.php.
Elgg\UpgradeService::__construct | ( | protected Locator | $locator, |
protected Translator | $translator, | ||
protected EventsService | $events, | ||
protected Config | $config, | ||
protected Mutex | $mutex, | ||
protected SystemMessagesService | $system_messages, | ||
protected Progress | $progress | ||
) |
Constructor.
Locator | $locator | Upgrade locator |
Translator | $translator | Translation service |
EventsService | $events | Events service |
Config | $config | Config |
Mutex | $mutex | Database mutex service |
SystemMessagesService | $system_messages | System messages |
Progress | $progress | Progress |
Definition at line 37 of file UpgradeService.php.
|
protected |
Elgg\UpgradeService::executeUpgrade | ( | \ElggUpgrade | $upgrade, |
int | $max_duration = null |
||
) |
Call the upgrade's run() for a specified period of time, or until it completes.
\ElggUpgrade | $upgrade | Upgrade to run |
int | null | $max_duration | Maximum duration in seconds Set to 0 to execute an entire upgrade |
Definition at line 275 of file UpgradeService.php.
Elgg\UpgradeService::getCompletedUpgrades | ( | bool | $async = true | ) |
Get completed (async) upgrades ordered by recently completed first.
bool | $async | Include async upgrades |
Definition at line 222 of file UpgradeService.php.
Elgg\UpgradeService::getPendingUpgrades | ( | bool | $async = true | ) |
Get pending async upgrades.
bool | $async | Include async upgrades |
Definition at line 188 of file UpgradeService.php.
Elgg\UpgradeService::run | ( | $upgrades = null | ) |
|
protected |
|
protected |