|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 // This file is part of Moodle - http://moodle.org/ 00003 // 00004 // Moodle is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // Moodle is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00016 00028 defined('MOODLE_INTERNAL') || die(); 00029 00030 00047 class qbehaviour_missing extends question_behaviour { 00048 00049 public function is_compatible_question(question_definition $question) { 00050 return true; 00051 } 00052 00053 public function summarise_action(question_attempt_step $step) { 00054 return ''; 00055 } 00056 00057 public function init_first_step(question_attempt_step $step, $variant) { 00058 throw new coding_exception('The behaviour used for this question is not available. ' . 00059 'No processing is possible.'); 00060 } 00061 00062 public function process_action(question_attempt_pending_step $pendingstep) { 00063 throw new coding_exception('The behaviour used for this question is not available. ' . 00064 'No processing is possible.'); 00065 } 00066 00067 public function get_min_fraction() { 00068 throw new coding_exception('The behaviour used for this question is not available. ' . 00069 'No processing is possible.'); 00070 } 00071 }