48 if (!isset($page[0])) {
52 $period = strtolower($page[0]);
56 if (!in_array($period, $allowed_periods)) {
57 throw new CronException(
"$period is not a recognized cron period.");
69 $std_out = ob_get_clean();
71 echo $std_out . $old_stdout;
90 $key =
"cron_latest:$period:ts";
110 $pages[] =
"cron/$period";
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
_elgg_cron_page_handler($page)
Cron handler.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
_elgg_cron_public_pages($hook, $type, $pages, $params)
Register cron's pages as public in case we're in Walled Garden mode.
elgg_register_admin_menu_item($section, $menu_id, $parent_id=null, $priority=100)
Add an admin area section or child section.
elgg_set_config($name, $value)
Set an Elgg configuration value.
elgg echo
Translates a string.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Trigger a Plugin Hook and run all handler callbacks registered to that hook:type. ...
_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_cron_init()
Cron initialization.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.