MDL-50287 completion: Rename tasks to remove the word 'cron'

This commit is contained in:
Dan Poltawski 2015-08-27 14:36:38 +01:00
parent 0628925bf1
commit 160ccd3d09
4 changed files with 8 additions and 8 deletions

View File

@ -1020,8 +1020,8 @@ $string['taskcachecron'] = 'Background processing for caches';
$string['taskcalendarcron'] = 'Send calendar notifications';
$string['taskcheckforupdates'] = 'Check for updates';
$string['taskcompletioncron'] = 'Calculate completion data';
$string['taskcompletioncronregular'] = 'Calculate regular completion data';
$string['taskcompletioncrondaily'] = 'Completion mark as started';
$string['taskcompletionregular'] = 'Calculate regular completion data';
$string['taskcompletiondaily'] = 'Completion mark as started';
$string['taskcontextcleanup'] = 'Cleanup contexts';
$string['taskcreatecontexts'] = 'Create missing contexts';
$string['taskdeletecachetext'] = 'Delete old text cache records';

View File

@ -28,7 +28,7 @@ namespace core\task;
* @copyright 2013 onwards Martin Dougiamas http://dougiamas.com.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class completion_cron_daily_task extends scheduled_task {
class completion_daily_task extends scheduled_task {
/**
* Get a descriptive name for this task (shown to admins).
@ -36,7 +36,7 @@ class completion_cron_daily_task extends scheduled_task {
* @return string
*/
public function get_name() {
return get_string('taskcompletioncrondaily', 'admin');
return get_string('taskcompletiondaily', 'admin');
}
/**

View File

@ -28,7 +28,7 @@ namespace core\task;
* @copyright 2015 Josh Willcock
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/
class completion_cron_regular_task extends scheduled_task {
class completion_regular_task extends scheduled_task {
/**
* Get a descriptive name for this task (shown to admins).
@ -36,7 +36,7 @@ class completion_cron_regular_task extends scheduled_task {
* @return string
*/
public function get_name() {
return get_string('taskcompletioncronregular', 'admin');
return get_string('taskcompletionregular', 'admin');
}
/**

View File

@ -159,7 +159,7 @@ $tasks = array(
'month' => '*'
),
array(
'classname' => 'core\task\completion_cron_regular_task',
'classname' => 'core\task\completion_regular_task',
'blocking' => 0,
'minute' => '*',
'hour' => '*',
@ -168,7 +168,7 @@ $tasks = array(
'month' => '*'
),
array(
'classname' => 'core\task\completion_cron_daily_task',
'classname' => 'core\task\completion_daily_task',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',