Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
qtype_ddimageortext_test_helper Class Reference

Test helper class for the drag-and-drop onto image question type. More...

Inheritance diagram for qtype_ddimageortext_test_helper:
question_test_helper

Public Member Functions

 get_ddimageortext_question_form_data_xsection ()
 
 get_test_questions ()
 
 make_ddimageortext_question_fox ()
 
 make_ddimageortext_question_maths ()
 Make a mathematical ddimageortext question.
 
 make_ddimageortext_question_mixedlang ()
 Make a test question where the drag items are a different language than the main question text.
 

Static Public Member Functions

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

Protected Member Functions

 make_choice_structure ($choices)
 
 make_place_structure ($places)
 

Detailed Description

Test helper class for the drag-and-drop onto image question type.

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

Member Function Documentation

◆ get_ddimageortext_question_form_data_xsection()

qtype_ddimageortext_test_helper::get_ddimageortext_question_form_data_xsection ( )
Return values
stdClassdate to create a ddimageortext question.

◆ 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_ddimageortext_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.

◆ make_ddimageortext_question_fox()

qtype_ddimageortext_test_helper::make_ddimageortext_question_fox ( )

◆ make_ddimageortext_question_maths()

qtype_ddimageortext_test_helper::make_ddimageortext_question_maths ( )

Make a mathematical ddimageortext question.

Return values
qtype_ddimageortext_question

◆ make_ddimageortext_question_mixedlang()

qtype_ddimageortext_test_helper::make_ddimageortext_question_mixedlang ( )

Make a test question where the drag items are a different language than the main question text.

Return values
qtype_ddimageortext_question

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