diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2012-09-30 10:24:58 +0200 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2012-09-30 10:24:58 +0200 |
commit | 093e68586fcf4c6ff17edfdd00aa1c639d264dc9 (patch) | |
tree | 021b90633db110196a1f41cde42972dda9c3916c /settings.php | |
parent | 96bee2b33467a1ce54f88c77b8a867ef1f7a9a97 (diff) |
Setting for default comparison method
Diffstat (limited to 'settings.php')
-rw-r--r-- | settings.php | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/settings.php b/settings.php index a0f5423..43b4ffa 100644 --- a/settings.php +++ b/settings.php @@ -1,11 +1,16 @@ -<?php
-defined('MOODLE_INTERNAL') || die;
-
-if ($ADMIN->fulltree) {
- //host
- $settings->add(new admin_setting_configtext('qtype_algebra_host', get_string('host', 'qtype_algebra'), '', 'localhost', PARAM_TEXT));
- //port
- $settings->add(new admin_setting_configtext('qtype_algebra_port', get_string('port', 'qtype_algebra'), '', 7777, PARAM_INT));
- //host
- $settings->add(new admin_setting_configtext('qtype_algebra_uri', get_string('uri', 'qtype_algebra'), '', '', PARAM_TEXT));
-}
+<?php +defined('MOODLE_INTERNAL') || die; + +if ($ADMIN->fulltree) { + // Default evaluation method. + $settings->add(new admin_setting_configselect('qtype_algebra_method', new lang_string('defaultmethod', 'qtype_algebra'), new lang_string('compareby', 'qtype_algebra'), 'eval', + array('sage' => new lang_string('comparesage', 'qtype_algebra'), + 'eval' => new lang_string('compareeval', 'qtype_algebra'), + 'equiv' => new lang_string('compareequiv', 'qtype_algebra')))); + // SAGE server connection host. + $settings->add(new admin_setting_configtext('qtype_algebra_host', get_string('host', 'qtype_algebra'), '', 'localhost', PARAM_TEXT)); + // SAGE server connection port. + $settings->add(new admin_setting_configtext('qtype_algebra_port', get_string('port', 'qtype_algebra'), '', 7777, PARAM_INT)); + // SAGE server connection uri. + $settings->add(new admin_setting_configtext('qtype_algebra_uri', get_string('uri', 'qtype_algebra'), '', '', PARAM_TEXT)); +} |