2009-11-01 15:24:58 +00:00
|
|
|
<?php
|
2008-12-04 03:25:43 +00:00
|
|
|
require_once($CFG->dirroot . '/mod/scorm/locallib.php');
|
2008-11-11 02:46:20 +00:00
|
|
|
$yesno = array(0 => get_string('no'),
|
|
|
|
1 => get_string('yes'));
|
2008-11-19 15:11:49 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/grademethod', get_string('grademethod', 'scorm'),get_string('grademethoddesc', 'scorm'), GRADEHIGHEST, scorm_get_grade_method_array()));
|
2007-12-19 17:35:20 +00:00
|
|
|
|
2008-11-11 02:46:20 +00:00
|
|
|
for ($i=0; $i<=100; $i++) {
|
|
|
|
$grades[$i] = "$i";
|
|
|
|
}
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/maxgrade', get_string('maximumgrade'),get_string('maximumgradedesc','scorm'), 100, $grades));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configtext('scorm/maxattempts', get_string('maximumattempts', 'scorm'), '', 0, PARAM_INT));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/displayattemptstatus', get_string('displayattemptstatus', 'scorm'),get_string('displayattemptstatusdesc', 'scorm'),0,$yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/displaycoursestructure', get_string('displaycoursestructure', 'scorm'),get_string('displaycoursestructuredesc', 'scorm'),0,$yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/forcecompleted', get_string('forcecompleted', 'scorm'),get_string('forcecompleteddesc', 'scorm'),0,$yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/forcenewattempt', get_string('forcenewattempt', 'scorm'),get_string('forcenewattemptdesc', 'scorm'),0,$yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/lastattemptlock', get_string('lastattemptlock', 'scorm'),get_string('lastattemptlockdesc', 'scorm'),0,$yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/whatgrade', get_string('whatgrade', 'scorm'), get_string('whatgradedesc', 'scorm'), HIGHESTATTEMPT, scorm_get_what_grade_array()));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configtext('scorm/framewidth', get_string('width', 'scorm'), get_string('framewidth', 'scorm'), 100));
|
2008-11-19 15:11:49 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configtext('scorm/frameheight', get_string('height', 'scorm'), get_string('frameheight', 'scorm'), 500));
|
2008-11-19 15:11:49 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/popup', get_string('display','scorm'), get_string('displaydesc','scorm'), 0, scorm_get_popup_display_array()));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
|
|
|
foreach(scorm_get_popup_options_array() as $key => $value){
|
|
|
|
$settings->add(new admin_setting_configcheckbox('scorm/'.$key, get_string($key, 'scorm'),'',$value));
|
|
|
|
}
|
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/skipview', get_string('skipview', 'scorm'), get_string('skipviewdesc', 'scorm'), 0, scorm_get_skip_view_array()));
|
2008-11-19 15:11:49 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/hidebrowse', get_string('hidebrowse', 'scorm'), get_string('hidebrowsedesc', 'scorm'), 0, $yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/hidetoc', get_string('hidetoc', 'scorm'), get_string('hidetocdesc', 'scorm'), 0, scorm_get_hidetoc_array()));
|
2008-11-19 15:11:49 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/hidenav', get_string('hidenav', 'scorm'), get_string('hidenavdesc', 'scorm'), 0, $yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/auto', get_string('autocontinue', 'scorm'), get_string('autocontinuedesc', 'scorm'), 0, $yesno));
|
2008-11-11 02:46:20 +00:00
|
|
|
|
2008-11-19 15:06:50 +00:00
|
|
|
$settings->add(new admin_setting_configselect('scorm/updatefreq', get_string('updatefreq', 'scorm'), get_string('updatefreqdesc', 'scorm'), 0, scorm_get_updatefreq_array()));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configtext('scorm/updatetime', get_string('updatetime', 'scorm'), '', 2, PARAM_INT));
|
|
|
|
|
|
|
|
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeexternal', get_string('allowtypeexternal', 'scorm'), '', 0));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configcheckbox('scorm/allowtypelocalsync', get_string('allowtypelocalsync', 'scorm'), '', 0));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configcheckbox('scorm/allowtypeimsrepository', get_string('allowtypeimsrepository', 'scorm'), '', 0));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2008-11-23 21:39:29 +00:00
|
|
|
$settings->add(new admin_setting_configcheckbox('scorm/allowapidebug', get_string('allowapidebug', 'scorm'), '', 0));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2009-09-18 03:52:50 +00:00
|
|
|
$settings->add(new admin_setting_configtext('scorm/apidebugmask', get_string('apidebugmask', 'scorm'), '', '/.*/'));
|
2008-09-09 08:30:00 +00:00
|
|
|
|
2009-11-01 15:24:58 +00:00
|
|
|
|