17 $this->setName(
'cron')
18 ->setDescription(
elgg_echo(
'cli:cron:description'))
19 ->addOption(
'interval',
'i', InputOption::VALUE_OPTIONAL,
22 ->addOption(
'force',
'f', InputOption::VALUE_NONE,
25 ->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());
56 $this->
error($e->getMessage());
error($message)
Print an error.
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.
A generic parent class for cron exceptions.
option($name)
Returns option value.