[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Defines the 'qtype_missingtype' question definition class. 19 * 20 * @package qtype 21 * @subpackage missingtype 22 * @copyright 2009 The Open University 23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 24 */ 25 26 27 defined('MOODLE_INTERNAL') || die(); 28 29 30 /** 31 * This question definition class is used when the actual question type of this 32 * question cannot be found. 33 * 34 * Why does this this class implement question_automatically_gradable? I am not 35 * sure at the moment. Perhaps it is important for it to work with as many 36 * behaviours as possible. 37 * 38 * @copyright 2009 The Open University 39 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 40 */ 41 class qtype_missingtype_question extends question_definition 42 implements question_automatically_gradable { 43 public function get_expected_data() { 44 return array(); 45 } 46 47 public function get_correct_response() { 48 return array(); 49 } 50 51 public function is_complete_response(array $response) { 52 return false; 53 } 54 55 public function is_gradable_response(array $response) { 56 return false; 57 } 58 59 public function get_validation_error(array $response) { 60 return ''; 61 } 62 63 public function is_same_response(array $prevresponse, array $newresponse) { 64 return true; 65 } 66 67 public function get_right_answer_summary() { 68 return ''; 69 } 70 71 public function summarise_response(array $response) { 72 return null; 73 } 74 75 public function classify_response(array $response) { 76 return array(); 77 } 78 79 public function start_attempt(question_attempt_step $step, $variant) { 80 throw new coding_exception('This question is of a type that is not installed ' . 81 'on your system. No processing is possible.'); 82 } 83 84 public function grade_response(array $response) { 85 throw new coding_exception('This question is of a type that is not installed ' . 86 'on your system. No processing is possible.'); 87 } 88 89 public function get_hint($hintnumber, question_attempt $qa) { 90 return null; 91 } 92 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |