16 $this->setName(
'cron')
17 ->setDescription(
elgg_echo(
'cli:cron:description'))
18 ->addOption(
'interval',
'i', InputOption::VALUE_OPTIONAL,
21 ->addOption(
'force',
'f', InputOption::VALUE_NONE,
24 ->addOption(
'time',
't', InputOption::VALUE_OPTIONAL,
34 $interval = $this->
option(
'interval');
49 if (!$this->
option(
'quiet')) {
50 foreach ($jobs as $job) {
51 $this->
write($job->getOutput());
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(!$annotation instanceof ElggAnnotation) $time
elgg_strtolower()
Wrapper function for mb_strtolower().
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Abstract command with some utility methods.
elgg-cli cron [–interval] [–quiet]
_elgg_services()
Get the global service provider.
option($name)
Returns option value.