18 $this->setName(
'upgrade:batch')
19 ->setDescription(
elgg_echo(
'cli:upgrade:batch:description'))
20 ->addOption(
'force',
'f', InputOption::VALUE_NONE,
21 elgg_echo(
'cli:upgrade:batch:option:force')
23 ->addArgument(
'upgrades', InputArgument::REQUIRED | InputArgument::IS_ARRAY,
24 elgg_echo(
'cli:upgrade:batch:argument:upgrades')
33 $force = (bool) $this->
option(
'force');
38 $this->
log(LogLevel::WARNING,
elgg_echo(
'cli:upgrade:batch:notfound', [$upgrade_class]));
42 if (!$force &&
$upgrade->isCompleted()) {
49 if (!$this->
option(
'quiet')) {
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
$upgrades
Lists pending upgrades.
if(empty($guid)) $upgrade
Represents an upgrade that runs outside of the upgrade.php script.
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Abstract command with some utility methods.
log($level, $message, array $context=[])
Log a message.
_elgg_services()
Get the global service provider.
argument($name)
Returns argument value.
option($name)
Returns option value.