mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-70230 admin: add setting sched. task status
When defining settings that are used by scheduled tasks, it is also useful, or even needed, to know the status of that scheduled task to have the whole big picture of that part of the system. Based on the admin_setting_description, this new setting reports its name, its status, a link to the configuration. When adding a new setting of this type, the user can add an extra description field to complete the whole meaning.
This commit is contained in:
parent
411150a424
commit
9c4510a358
7 changed files with 171 additions and 8 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
// This file defines settingpages and externalpages under the "appearance" category
|
||||
|
||||
use core_admin\local\settings\setting_scheduled_task_status;
|
||||
|
||||
if ($hassiteconfig) {
|
||||
|
||||
// "languageandlocation" settingpage
|
||||
|
@ -16,6 +18,7 @@ if ($hassiteconfig) {
|
|||
$temp->add(new admin_setting_configcheckbox('langstringcache', new lang_string('langstringcache', 'admin'), new lang_string('configlangstringcache', 'admin'), 1));
|
||||
$temp->add(new admin_setting_configtext('locale', new lang_string('localetext', 'admin'), new lang_string('configlocale', 'admin'), '', PARAM_FILE));
|
||||
$temp->add(new admin_setting_configselect('latinexcelexport', new lang_string('latinexcelexport', 'admin'), new lang_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
|
||||
$temp->add(new setting_scheduled_task_status('langimporttaskstatus', '\tool_langimport\task\update_langpacks_task'));
|
||||
|
||||
$ADMIN->add('language', $temp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue