[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/ -> cronlib.php (summary)

Cron functions.

Copyright: 1999 onwards Martin Dougiamas http://dougiamas.com
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 296 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  cron_run()
  cron_trace_time_and_memory()
  cron_execute_plugin_type()
  cron_bc_hack_plugin_functions()

Functions
Functions that are not part of a class:

cron_run()   X-Ref
Execute cron tasks


cron_trace_time_and_memory()   X-Ref
Output some standard information during cron runs. Specifically current time
and memory usage. This method also does gc_collect_cycles() (before displaying
memory usage) to try to help PHP manage memory better.


cron_execute_plugin_type($plugintype, $description = null)   X-Ref
Executes cron functions for a specific type of plugin.

param: string $plugintype Plugin type (e.g. 'report')
param: string $description If specified, will display 'Starting (whatever)'

cron_bc_hack_plugin_functions($plugintype, $plugins)   X-Ref
Used to add in old-style cron functions within plugins that have not been converted to the
new standard API. (The standard API is frankenstyle_name_cron() in lib.php; some types used
cron.php and some used a different name.)

param: string $plugintype Plugin type e.g. 'report'
param: array $plugins Array from plugin name (e.g. 'report_frog') to function name (e.g.
return: array Revised version of $plugins that adds in any extra plugin functions found by



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1