Commit 6e34cd29 authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-20636 Rename the question type editing forms to start with qtype_...

parent 14ed1aa2
......@@ -27,7 +27,7 @@
/**
* Description editing form definition.
*/
class question_edit_description_form extends question_edit_form {
class qtype_description_edit_form extends question_edit_form {
/**
* Add question-type specific form fields.
*
......
......@@ -28,7 +28,7 @@
/**
* essay editing form definition.
*/
class question_edit_essay_form extends question_edit_form {
class qtype_essay_edit_form extends question_edit_form {
public function qtype() {
return 'essay';
}
......
......@@ -12,7 +12,7 @@
/**
* match editing form definition.
*/
class question_edit_match_form extends question_edit_form {
class qtype_match_edit_form extends question_edit_form {
function get_per_answer_fields($mform, $label, $gradeoptions, &$repeatedoptions, &$answersoption) {
$repeated = array();
......
......@@ -33,7 +33,7 @@
* @copyright 2007 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_missingtype_form extends question_edit_form {
class qtype_missingtype_edit_form extends question_edit_form {
public function __construct($submiturl, $question, $category, $contexts, $formeditable = true) {
parent::__construct($submiturl, $question, $category, $contexts, false);
}
......
......@@ -32,7 +32,7 @@ defined('MOODLE_INTERNAL') || die();
* @copyright © 2007 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_multichoice_form extends question_edit_form {
class qtype_multichoice_edit_form extends question_edit_form {
/**
* Add question-type specific form fields.
*
......
......@@ -38,7 +38,7 @@ require_once(dirname(__FILE__) . '/locallib.php');
* @copyright 2006 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_opaque_form extends question_edit_form {
class qtype_opaque_edit_form extends question_edit_form {
function definition() {
parent::definition();
$mform = $this->_form;
......
......@@ -31,7 +31,7 @@
* @copyright 2008 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_oumultiresponse_form extends question_edit_form {
class qtype_oumultiresponse_edit_form extends question_edit_form {
public function definition_inner($mform) {
global $QTYPES;
......
......@@ -209,7 +209,7 @@ class question_type {
return null;
}
require_once($definition_file);
$classname = 'question_edit_'.$this->name().'_form';
$classname = $this->plugin_name() . '_edit_form';
if (!class_exists($classname)) {
return null;
}
......
......@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
* @copyright © 2007 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_shortanswer_form extends question_edit_form {
class qtype_shortanswer_edit_form extends question_edit_form {
/**
* Add question-type specific form fields.
*
......
......@@ -37,7 +37,7 @@ require_once($CFG->dirroot.'/question/type/edit_question_form.php');
* @copyright © 2006 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class question_edit_truefalse_form extends question_edit_form {
class qtype_truefalse_edit_form extends question_edit_form {
/**
* Add question-type specific form fields.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment