Elgg  Version 4.3
ProcessQueueCronHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Notifications;
4 
11 
19  public function __invoke(\Elgg\Hook $hook) {
20  // calculate when we should stop
21  $stop_time = $hook->getParam('time') + (int) elgg_get_config('notifications_max_runtime');
22  _elgg_services()->notifications->processQueue($stop_time);
23  }
24 }
Models an event passed to hook handlers.
Definition: Hook.php:11
__invoke(\Elgg\Hook $hook)
Process notification queue.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:638
elgg_get_config($name, $default=null)
Get an Elgg configuration value.