47 if (!isset($page[0])) {
51 $period = strtolower($page[0]);
55 if (!in_array($period, $allowed_periods)) {
56 throw new \CronException(
"$period is not a recognized cron period.");
68 $std_out = ob_get_clean();
70 echo $std_out . $old_stdout;
89 $key =
"cron_latest:$period:ts";
95 $events->registerHandler(
'init',
'system',
'_elgg_cron_init');
elgg_set_config($name, $value)
Set an Elgg configuration value.
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
forward($location="", $reason='system')
Forward to $location.
elgg_register_admin_menu_item($section, $menu_id, $parent_id=null, $priority=100)
Add an admin area section or child section.
_elgg_cron_page_handler($page)
Cron handler.
_elgg_cron_init()
Cron initialization.
_elgg_cron_monitor($hook, $period, $output, $params)
Record cron running.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
elgg_get_site_entity($site_guid=0)
Get an \ElggSite entity (default is current site)