/// this format, this function converts it into a question
/// object suitable for processing and insertion into Moodle.
- echo "<p>This flash question format has not yet been completed!</p>";
+ // We should never get there unless the qformat plugin is broken.
+ throw new coding_exception('Question format plugin is missing important code: readquestion.');
return null;
}
$string['finishreview'] = 'Finish review';
$string['forceregeneration'] = 'force regeneration';
$string['formatnotfound'] = 'Import/export format {$a} not found';
-$string['formatnotimplemented'] = 'This format has not been correctly implemented, please post a bug report';
$string['formulaerror'] = 'Formula errors!';
$string['fractionsaddwrong'] = 'The positive grades you have chosen do not add up to 100%<br />Instead, they add up to {$a}%<br />Do you want to go back and fix this question?';
$string['fractionsnomax'] = 'One of the answers should be 100%, so that it is<br />possible to get a full grade for this question.<br />Do you want to go back and fix this question?';
* @return object question object
*/
protected function readquestion($lines) {
-
- $formatnotimplemented = get_string('formatnotimplemented', 'question');
- echo "<p>{$formatnotimplemented}</p>";
+ // We should never get there unless the qformat plugin is broken.
+ throw new coding_exception('Question format plugin is missing important code: readquestion.');
return null;
}
*/
protected function writequestion($question) {
// if not overidden, then this is an error.
- $formatnotimplemented = get_string('formatnotimplemented', 'question');
- echo "<p>{$formatnotimplemented}</p>";
+ throw new coding_exception('Question format plugin is missing important code: writequestion.');
return null;
}