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,
35 $interval = $this->
option(
'interval');
50 if (!$this->
option(
'quiet')) {
51 foreach ($jobs as $job) {
52 $this->
write($job->getOutput());
if(!$annotation instanceof ElggAnnotation) $time
elgg_strtolower()
Wrapper function for mb_strtolower().
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
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.