Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
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. More... | |
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_truefalse_test_helper, qtype_shortanswer_test_helper, qtype_randomsamatch_test_helper, qtype_random_test_helper, qtype_numerical_test_helper, qtype_multichoice_test_helper, qtype_multianswer_test_helper, qtype_match_test_helper, qtype_gapselect_test_helper, qtype_essay_test_helper, qtype_description_test_helper, qtype_ddwtos_test_helper, qtype_ddmarker_test_helper, qtype_ddimageortext_test_helper, qtype_calculatedsimple_test_helper, qtype_calculatedmulti_test_helper, and qtype_calculated_test_helper.