Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/cronlib.php File Reference

Go to the source code of this file.

Namespaces

namespace  core

Functions

 cron_run ()
 cron_execute_plugin_type ($plugintype, $description=null)
 cron_bc_hack_plugin_functions ($plugintype, $plugins)
 notify_login_failures ()

Function Documentation

cron_bc_hack_plugin_functions ( plugintype,
plugins 
)

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.)

Parameters:
string$plugintypePlugin type e.g. 'report'
array$pluginsArray from plugin name (e.g. 'report_frog') to function name (e.g. 'report_frog_cron') for plugin cron functions that were already found using the new API
Returns:
array Revised version of $plugins that adds in any extra plugin functions found by looking in the older location

Definition at line 539 of file cronlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

cron_execute_plugin_type ( plugintype,
description = null 
)

Executes cron functions for a specific type of plugin.

Parameters:
string$plugintypePlugin type (e.g. 'report')
string$descriptionIf specified, will display 'Starting (whatever)' and 'Finished (whatever)' lines, otherwise does not display

Definition at line 470 of file cronlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

cron_run ( )

Execute cron tasks

Definition at line 29 of file cronlib.php.

Here is the call graph for this function:

Notify admin users or admin user of any failed logins (since last notification).

Note that this function must be only executed from the cron script It uses the cache_flags system to store temporary records, deleting them by name before finishing

Definition at line 597 of file cronlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations