Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
6e34cd29
Commit
6e34cd29
authored
Jan 28, 2011
by
Tim Hunt
Browse files
MDL-20636 Rename the question type editing forms to start with qtype_...
parent
14ed1aa2
Changes
10
Hide whitespace changes
Inline
Side-by-side
question/type/description/edit_description_form.php
View file @
6e34cd29
...
...
@@ -27,7 +27,7 @@
/**
* Description editing form definition.
*/
class
q
uestion_edit
_description_form
extends
question_edit_form
{
class
q
type
_description_
edit_
form
extends
question_edit_form
{
/**
* Add question-type specific form fields.
*
...
...
question/type/essay/edit_essay_form.php
View file @
6e34cd29
...
...
@@ -28,7 +28,7 @@
/**
* essay editing form definition.
*/
class
q
uestion_edit
_essay_form
extends
question_edit_form
{
class
q
type
_essay_
edit_
form
extends
question_edit_form
{
public
function
qtype
()
{
return
'essay'
;
}
...
...
question/type/match/edit_match_form.php
View file @
6e34cd29
...
...
@@ -12,7 +12,7 @@
/**
* match editing form definition.
*/
class
q
uestion_edit
_match_form
extends
question_edit_form
{
class
q
type
_match_
edit_
form
extends
question_edit_form
{
function
get_per_answer_fields
(
$mform
,
$label
,
$gradeoptions
,
&
$repeatedoptions
,
&
$answersoption
)
{
$repeated
=
array
();
...
...
question/type/missingtype/edit_missingtype_form.php
View file @
6e34cd29
...
...
@@ -33,7 +33,7 @@
* @copyright 2007 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class
q
uestion_edit
_missingtype_form
extends
question_edit_form
{
class
q
type
_missingtype_
edit_
form
extends
question_edit_form
{
public
function
__construct
(
$submiturl
,
$question
,
$category
,
$contexts
,
$formeditable
=
true
)
{
parent
::
__construct
(
$submiturl
,
$question
,
$category
,
$contexts
,
false
);
}
...
...
question/type/multichoice/edit_multichoice_form.php
View file @
6e34cd29
...
...
@@ -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
q
uestion_edit
_multichoice_form
extends
question_edit_form
{
class
q
type
_multichoice_
edit_
form
extends
question_edit_form
{
/**
* Add question-type specific form fields.
*
...
...
question/type/opaque/edit_opaque_form.php
View file @
6e34cd29
...
...
@@ -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
q
uestion_edit
_opaque_form
extends
question_edit_form
{
class
q
type
_opaque_
edit_
form
extends
question_edit_form
{
function
definition
()
{
parent
::
definition
();
$mform
=
$this
->
_form
;
...
...
question/type/oumultiresponse/edit_oumultiresponse_form.php
View file @
6e34cd29
...
...
@@ -31,7 +31,7 @@
* @copyright 2008 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class
q
uestion_edit
_oumultiresponse_form
extends
question_edit_form
{
class
q
type
_oumultiresponse_
edit_
form
extends
question_edit_form
{
public
function
definition_inner
(
$mform
)
{
global
$QTYPES
;
...
...
question/type/questiontype.php
View file @
6e34cd29
...
...
@@ -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
;
}
...
...
question/type/shortanswer/edit_shortanswer_form.php
View file @
6e34cd29
...
...
@@ -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
q
uestion_edit
_shortanswer_form
extends
question_edit_form
{
class
q
type
_shortanswer_
edit_
form
extends
question_edit_form
{
/**
* Add question-type specific form fields.
*
...
...
question/type/truefalse/edit_truefalse_form.php
View file @
6e34cd29
...
...
@@ -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
q
uestion_edit
_truefalse_form
extends
question_edit_form
{
class
q
type
_truefalse_
edit_
form
extends
question_edit_form
{
/**
* Add question-type specific form fields.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment