Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / admin / settings / courses.php
blob61614b3c654c7006ef72d003c27531e15e23051e
1 <?php // $Id$
3 // This file defines settingpages and externalpages under the "courses" category
6 $ADMIN->add('courses', new admin_externalpage('coursemgmt', get_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on','moodle/category:update'));
8 $ADMIN->add('courses', new admin_externalpage('enrolment', get_string('enrolments'), $CFG->wwwroot . '/'.$CFG->admin.'/enrol.php'));
10 // "courserequests" settingpage
11 $temp = new admin_settingpage('courserequest', get_string('courserequest'));
12 $temp->add(new admin_setting_configcheckbox('enablecourserequests', get_string('enablecourserequests', 'admin'), get_string('configenablecourserequests', 'admin'), 0));
13 require_once($CFG->dirroot.'/course/lib.php');
14 $temp->add(new admin_setting_configselect('defaultrequestcategory', get_string('defaultrequestcategory', 'admin'), get_string('configdefaultrequestcategory', 'admin'), 1, make_categories_options()));
15 $ADMIN->add('courses', $temp);
19 // "backups" settingpage
20 $temp = new admin_settingpage('backups', get_string('backups','admin'),'moodle/site:backup');
21 $temp->add(new admin_setting_backupcheckbox('backup_sche_modules', get_string('includemodules'), get_string('backupincludemoduleshelp'), 0));
22 $temp->add(new admin_setting_backupcheckbox('backup_sche_withuserdata', get_string('includemoduleuserdata'), get_string('backupincludemoduleuserdatahelp'), 0));
23 $temp->add(new admin_setting_backupcheckbox('backup_sche_metacourse', get_string('metacourse'), get_string('backupmetacoursehelp'), 0));
24 $temp->add(new admin_setting_backupselect('backup_sche_users', get_string('users'), get_string('backupusershelp'), 0, array(0 => get_string('all'),
25 1 => get_string('course'))));
26 $temp->add(new admin_setting_backupcheckbox('backup_sche_logs', get_string('logs'), get_string('backuplogshelp'), 0));
27 $temp->add(new admin_setting_backupcheckbox('backup_sche_userfiles', get_string('userfiles'), get_string('backupuserfileshelp'), 0));
28 $temp->add(new admin_setting_backupcheckbox('backup_sche_coursefiles', get_string('coursefiles'), get_string('backupcoursefileshelp'), 0));
29 $temp->add(new admin_setting_backupcheckbox('backup_sche_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0));
30 $temp->add(new admin_setting_backupselect('backup_sche_keep', get_string('keep'), get_string('backupkeephelp'), 1, array(0 => get_string('all'),
31 1 => '1',
32 2 => '2',
33 5 => '5',
34 10 => '10',
35 20 => '20',
36 30 => '30',
37 40 => '40',
38 50 => '50',
39 100 => '100',
40 200 => '200',
41 300 => '300',
42 400 => '400',
43 500 => '500')));
44 $temp->add(new admin_setting_backupcheckbox('backup_sche_active', get_string('active'), get_string('backupactivehelp'), 0));
45 $temp->add(new admin_setting_special_backupdays());
46 $temp->add(new admin_setting_special_backuptime());
47 $temp->add(new admin_setting_special_backupsaveto());
48 $ADMIN->add('courses', $temp);