16 $this->setName(
'upgrade:list')
17 ->setDescription(
elgg_echo(
'cli:upgrade:list:description'));
24 $completed_upgrades =
_elgg_services()->upgrades->getCompletedUpgrades();
25 if (!empty($completed_upgrades)) {
26 $table =
new Table($this->output);
30 foreach ($completed_upgrades as
$upgrade) {
33 $upgrade->getDisplayName(),
40 $pending_upgrades =
_elgg_services()->upgrades->getPendingUpgrades();
41 if (!empty($pending_upgrades)) {
42 $table =
new Table($this->output);
46 foreach ($pending_upgrades as
$upgrade) {
49 $upgrade->getDisplayName(),
56 if (empty($completed_upgrades) && empty($pending_upgrades)) {
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(empty($guid)) $upgrade
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Abstract command with some utility methods.
_elgg_services()
Get the global service provider.