Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Base class for question type test helpers. More...
Public Member Functions | |
get_test_questions () | |
Static Public Member Functions | |
static | get_question_editing_form ($cat, $questiondata) |
Set up a form to create a question in $cat. | |
Base class for question type test helpers.
|
static |
Set up a form to create a question in $cat.
This method also sets cat and contextid on $questiondata object.
object | $cat | the category |
object | $questiondata | form initialisation requires question data. |
moodleform |
|
abstract |
array | of example question names that can be passed as the $which argument of test_question_maker::make_question when $qtype is this question type. |
Reimplemented in qtype_calculated_test_helper, qtype_calculatedmulti_test_helper, qtype_calculatedsimple_test_helper, qtype_ddimageortext_test_helper, qtype_ddmarker_test_helper, qtype_ddwtos_test_helper, qtype_description_test_helper, qtype_essay_test_helper, qtype_gapselect_test_helper, qtype_match_test_helper, qtype_multianswer_test_helper, qtype_multichoice_test_helper, qtype_numerical_test_helper, qtype_random_test_helper, qtype_randomsamatch_test_helper, qtype_shortanswer_test_helper, and qtype_truefalse_test_helper.