From 093e68586fcf4c6ff17edfdd00aa1c639d264dc9 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 30 Sep 2012 10:24:58 +0200 Subject: Setting for default comparison method --- settings.php | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'settings.php') diff --git a/settings.php b/settings.php index a0f5423..43b4ffa 100644 --- a/settings.php +++ b/settings.php @@ -1,11 +1,16 @@ -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)); -} +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)); +} -- cgit v1.2.3