Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
qtype_missingtype_test_helper Class Reference
Inheritance diagram for qtype_missingtype_test_helper:
question_test_helper

Public Member Functions

 get_missingtype_question_form_data_invalid ()
 Gets the question form data for the invalid question.
 
 get_test_questions ()
 

Static Public Member Functions

static get_question_editing_form ($cat, $questiondata)
 Set up a form to create a question in $cat.
 

Member Function Documentation

◆ get_missingtype_question_form_data_invalid()

qtype_missingtype_test_helper::get_missingtype_question_form_data_invalid ( )

Gets the question form data for the invalid question.

Return values
stdClass

◆ get_question_editing_form()

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

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()

qtype_missingtype_test_helper::get_test_questions ( )
Return values
arrayof example question names that can be passed as the $which argument of test_question_maker::make_question when $qtype is this question type.

Reimplemented from question_test_helper.


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