MDL-20636 Boilerplate and other cleanup in the question core code.

This includes converting behaviours to pluginname strings.
This commit is contained in:
Tim Hunt
2011-02-21 18:00:15 +00:00
parent f7c1dfaf79
commit aa9bdbe31c
24 changed files with 463 additions and 93 deletions
+15
View File
@@ -1,3 +1,18 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* JavaScript library for the quiz module.
*
+4 -3
View File
@@ -19,9 +19,10 @@
/**
* Question behaviour for the old adaptive mode.
*
* @package qbehaviour_adaptive
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package qbehaviour
* @subpackage adaptive
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@@ -1,6 +1,30 @@
<?php
$string['adaptive'] = 'Adaptive mode';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_adaptive', language 'en'.
*
* @package qbehaviour
* @subpackage adaptive
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['gradingdetails'] = 'Marks for this submission: {$a->raw}/{$a->max}.';
$string['gradingdetailsadjustment'] = 'With previous penalties this gives <strong>{$a->cur}/{$a->max}</strong>.';
$string['gradingdetailspenalty'] = 'This submission attracted a penalty of {$a}.';
$string['pluginname'] = 'Adaptive mode';
@@ -1,3 +1,27 @@
<?php
$string['adaptivenopenalty'] = 'Adaptive mode (no penalties)';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_adaptivenopenalty', language 'en'.
*
* @package qbehaviour
* @subpackage adaptivenopenalty
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Adaptive mode (no penalties)';
@@ -1,9 +1,33 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_deferredcbm', language 'en'.
*
* @package qbehaviour
* @subpackage deferredcbm
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['assumingcertainty'] = 'You did not select a certainty. Assuming: {$a}.';
$string['certainty1'] = 'Not very (less than 67%)';
$string['certainty2'] = 'Fairly (more than 67%)';
$string['certainty3'] = 'Very (more than 85%)';
$string['deferredcbm'] = 'Deferred feedback with CBM';
$string['howcertainareyou'] = 'How certain are you? {$a}';
$string['markadjustment'] = 'Based on the certainty you expressed, your base mark of {$a->rawmark} was adjusted to {$a->mark}.';
$string['pluginname'] = 'Deferred feedback with CBM';
@@ -1,3 +1,27 @@
<?php
$string['deferredfeedback'] = 'Deferred feedback';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_deferredfeedback', language 'en'.
*
* @package qbehaviour
* @subpackage deferredfeedback
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Deferred feedback';
@@ -1,4 +1,28 @@
<?php
$string['immediatecbm'] = 'Immediate feedback with CBM';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_immediatecbm', language 'en'.
*
* @package qbehaviour
* @subpackage immediatecbm
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pleaseselectacertainty'] = 'Please select a certainty.';
$string['pluginname'] = 'Immediate feedback with CBM';
@@ -1,3 +1,27 @@
<?php
$string['immediatefeedback'] = 'Immediate feedback';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_immediatefeedback', language 'en'.
*
* @package qbehaviour
* @subpackage immediatefeedback
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Immediate feedback';
@@ -1,4 +1,28 @@
<?php
$string['informationitem'] = 'behaviour for information items';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_informationitem', language 'en'.
*
* @package qbehaviour
* @subpackage informationitem
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'behaviour for information items';
$string['seen'] = 'Seen';
@@ -1,6 +1,30 @@
<?php
$string['interactive'] = 'Interactive with multiple tries';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_interactive', language 'en'.
*
* @package qbehaviour
* @subpackage interactive
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['notcomplete'] = 'Not complete';
$string['pluginname'] = 'Interactive with multiple tries';
$string['triesremaining'] = 'Tries remaining: {$a}';
$string['tryagain'] = 'Try again';
@@ -1,3 +1,27 @@
<?php
$string['interactivecountback'] = 'Interactive with multiple tries (credit for earlier tries)';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_interactivecountback', language 'en'.
*
* @package qbehaviour
* @subpackage interactivecountback
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Interactive with multiple tries (credit for earlier tries)';
@@ -1,3 +1,27 @@
<?php
$string['manualgraded'] = 'Manually graded';
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_manualgraded', language 'en'.
*
* @package qbehaviour
* @subpackage manualgraded
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Manually graded';
@@ -1,3 +1,27 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_missing', language 'en'.
*
* @package qbehaviour
* @subpackage missing
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['questionusedunknownmodel'] = 'This question was attempted with an behaviour that is not currently availalbe. We are attempting to show the question, but there may be problems.';
@@ -1,4 +1,28 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'qbehaviour_opaque', language 'en'.
*
* @package qbehaviour
* @subpackage opaque
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['notcomplete'] = 'Not complete';
$string['opaque'] = 'Question managed by a remote engine';
$string['pluginname'] = 'Question managed by a remote engine';
+33 -1
View File
@@ -1,16 +1,48 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Defines the form for editing question categories.
*
* @package moodlecore
* @subpackage questionbank
* @copyright 2007 Jamie Pratt [email protected]
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once($CFG->libdir.'/formslib.php');
/**
* Form for editing qusetions categories (name, description, etc.)
*
* @copyright 2007 Jamie Pratt [email protected]
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_category_edit_form extends moodleform {
function definition() {
global $CFG, $DB;
$mform =& $this->_form;
$mform = $this->_form;
$contexts = $this->_customdata['contexts'];
$currentcat = $this->_customdata['currentcat'];
+1 -1
View File
@@ -305,7 +305,7 @@ abstract class question_engine {
* @return string name from the current language pack.
*/
public static function get_behaviour_name($behaviour) {
return get_string($behaviour, 'qbehaviour_' . $behaviour);
return get_string('pluginname', 'qbehaviour_' . $behaviour);
}
/**
+26 -2
View File
@@ -1,5 +1,29 @@
// This script, and the YUI libraries that it needs, are inluded by
// the $PAGE->requires->js calls in question_get_html_head_contributions in lib/questionlib.php.
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* JavaScript library for dealing with the question flags.
*
* This script, and the YUI libraries that it needs, are inluded by
* the $PAGE->requires->js calls in question_get_html_head_contributions in lib/questionlib.php.
*
* @package moodlecore
* @subpackage questionengine
* @copyright 2010 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
M.core_question_flags = {
flagattributes: null,
+9 -11
View File
@@ -1,19 +1,17 @@
FILE FORMATS FOR QUESTION IMPORT/EXPORT
------------------------------------
Question import/export formats
==============================
This directory contains plug-in sub-modules to add
import-export formats for Moodle questions
This directory contains plug-ins to supprt importing and exporting questions in
a variety of formats.
Each sub-module must contain at least a format.php file
containing a class that contains functions for reading,
writing, importing and exporting questions.
Each sub-module must contain at least a format.php file containing a class that
contains functions for reading, writing, importing and exporting questions.
For correct operation the class name must be based on the
name of the containing directory, e.g.,
For correct operation the class name must be based on the name of the plugin.
For example:
directory: webct
plugin: webct
class: class qformat_webct extends qformat_default {
Most of them are based on the class found in question/format.php.
See the comments therein for more information.
+3 -4
View File
@@ -13,14 +13,13 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* JavaScript required by the question preview pop-up.
*
* @package moodlecore
* @package moodlecore
* @subpackage questionengine
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+26 -2
View File
@@ -1,6 +1,30 @@
// This script is included by question_bank_view and other parts of question/editlib.php.
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* JavaScript belonging to question_bank_view.
*
* This script is included by question_bank_view and other parts of question/editlib.php.
*
* @package moodlecore
* @subpackage questionbank
* @copyright 2009 Tim Hunt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// JavaScript belonging to question_bank_view.
question_bank = {
strselectall: '',
strdeselectall: '',
+25
View File
@@ -1,3 +1,28 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* JavaScript required by the question engine.
*
* @package moodlecore
* @subpackage questionengine
* @copyright 2008 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Scroll manager is a class that help with saving the scroll positing when you
* click on an action icon, and then when the page is reloaded after processing
+22 -25
View File
@@ -468,21 +468,21 @@ DONE mod/quiz/report/statistics/simpletest/mdl_question_states.csv
DONE mod/quiz/settingslib.php
DONE mod/quiz/styles.css
DONE mod/quiz/version.php
question/behaviour/adaptive/lang/en/qbehaviour_adaptive.php
question/behaviour/adaptivenopenalty/lang/en/qbehaviour_adaptivenopenalty.php
question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php
question/behaviour/deferredfeedback/lang/en/qbehaviour_deferredfeedback.php
question/behaviour/immediatecbm/lang/en/qbehaviour_immediatecbm.php
question/behaviour/immediatefeedback/lang/en/qbehaviour_immediatefeedback.php
question/behaviour/informationitem/lang/en/qbehaviour_informationitem.php
question/behaviour/interactive/lang/en/qbehaviour_interactive.php
question/behaviour/interactivecountback/lang/en/qbehaviour_interactivecountback.php
question/behaviour/manualgraded/lang/en/qbehaviour_manualgraded.php
question/behaviour/missing/lang/en/qbehaviour_missing.php
question/behaviour/opaque/lang/en/qbehaviour_opaque.php
question/category_form.php
question/export_form.php
question/flags.js
DONE question/behaviour/adaptive/lang/en/qbehaviour_adaptive.php
DONE question/behaviour/adaptivenopenalty/lang/en/qbehaviour_adaptivenopenalty.php
DONE question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php
DONE question/behaviour/deferredfeedback/lang/en/qbehaviour_deferredfeedback.php
DONE question/behaviour/immediatecbm/lang/en/qbehaviour_immediatecbm.php
DONE question/behaviour/immediatefeedback/lang/en/qbehaviour_immediatefeedback.php
DONE question/behaviour/informationitem/lang/en/qbehaviour_informationitem.php
DONE question/behaviour/interactive/lang/en/qbehaviour_interactive.php
DONE question/behaviour/interactivecountback/lang/en/qbehaviour_interactivecountback.php
DONE question/behaviour/manualgraded/lang/en/qbehaviour_manualgraded.php
DONE question/behaviour/missing/lang/en/qbehaviour_missing.php
DONE question/behaviour/opaque/lang/en/qbehaviour_opaque.php
DONE question/category_form.php
DONE question/export_form.php
DONE question/flags.js
question/format/aiken/format.php
question/format/gift/examples.txt
question/format/qti_two/templates/choice.tpl
@@ -497,23 +497,20 @@ question/format/qti_two/templates/mmchoiceMultiple.tpl
question/format/qti_two/templates/notimplemented.tpl
question/format/qti_two/templates/numerical.tpl
question/format/qti_two/templates/textEntry.tpl
question/format/README.txt
question/format/webct/TODO.txt
question/import_form.php
question/qbank.js
question/qengine.js
question/todo/quizinstall.diff.txt
DONE question/format/README.txt
DONE question/format/webct/TODO.txt
DONE question/import_form.php
DONE question/qbank.js
DONE question/qengine.js
question/type/calculated/datasetitems_form.php
question/type/calculated/db/upgrade.php
question/type/calculated/questiontype.php
question/type/calculated/version.php
question/type/calculatedmulti/pix/icon.gif
question/type/calculatedmulti/questiontype.php
question/type/calculatedsimple/pix/icon.gif
question/type/calculatedsimple/questiontype.php
question/type/ddwtos/version.php
question/type/description/question.html
question/type/essay/display.html
DONE question/type/description/question.html
DONE question/type/essay/display.html
question/type/essay/version.php
question/type/gapselect/edit_form_base.php
question/type/gapselect/rendererbase.php
-15
View File
@@ -1,15 +0,0 @@
<div id="q<?php echo $question->id; ?>" class="que <?php echo $question->qtype; ?> clearfix">
<div class="info">
<span class="edit"><?php echo $editlink; ?></span>
</div>
<div class="content">
<div class="qtext">
<?php echo $questiontext; ?>
</div>
</div>
<?php if ($generalfeedback) { ?>
<div class="generalfeedback">
<?php echo $generalfeedback ?>
</div>
<?php } ?>
</div>
-18
View File
@@ -1,18 +0,0 @@
<div class="qtext">
<?php echo $questiontext; ?>
</div>
<div class="ablock clearfix">
<div class="prompt">
<?php echo $stranswer; ?>
</div>
<table class="answer"><tr><td><?php // HTML editors have to go in tables. ?>
<?php echo $answer; ?>
</td></tr></table>
<?php if ($feedback) { ?>
<div class="feedback">
<?php echo $feedback; ?>
</div>
<?php } ?>
<?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
</div>