Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
question_test_helper Class Reference

Base class for question type test helpers. More...

Inheritance diagram for question_test_helper:
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 qtype_truefalse_test_helper

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.
 

Detailed Description

Base class for question type test helpers.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_question_editing_form()

static question_test_helper::get_question_editing_form ( $cat,
$questiondata )
static

Set up a form to create a question in $cat.

This method also sets cat and contextid on $questiondata object.

Parameters
object$catthe category
object$questiondataform initialisation requires question data.
Return values
moodleform

◆ get_test_questions()


The documentation for this class was generated from the following file: