Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Functions | Variables
cron.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Functions

 _elgg_cron_init ()
 Cron initialization. More...
 
 _elgg_cron_run ()
 Cron run. More...
 
 _elgg_cron_page_handler ($page)
 Cron handler. More...
 
 _elgg_cron_monitor ($hook, $period, $output, $params)
 Record cron running. More...
 

Variables

return function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks)
 

Function Documentation

_elgg_cron_init ( )

Cron initialization.

Returns
void private

Definition at line 15 of file cron.php.

_elgg_cron_monitor (   $hook,
  $period,
  $output,
  $params 
)

Record cron running.

Parameters
string$hookHook name
string$periodCron period
string$outputOutput content
array$paramsHook parameters
Returns
void private

Definition at line 154 of file cron.php.

_elgg_cron_page_handler (   $page)

Cron handler.

Parameters
array$pagePages
Returns
bool
Exceptions
CronExceptionprivate

Definition at line 105 of file cron.php.

_elgg_cron_run ( )

Cron run.

This function was designed to be called every one minute from a cron job to executes each Elgg cron period at the desired interval. Will also exeute any Elgg cron period that have not fired by the expected deadline.

Can be called manually by: http://YOUR.SITE/cron/run/

This will only execute cron periods at specified intervals to force execution of a specific period you will need to use http://YOUR.SITE/cron/<period>/

private

Definition at line 51 of file cron.php.

Variable Documentation

Definition at line 165 of file cron.php.