Test helper class for the drag-and-drop onto image question type.
More...
|
| make_choice_structure ($choices) |
|
| make_place_structure ($places) |
|
Test helper class for the drag-and-drop onto image question type.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_ddimageortext_question_form_data_xsection()
qtype_ddimageortext_test_helper::get_ddimageortext_question_form_data_xsection |
( |
| ) |
|
- Return values
-
stdClass | date 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 | $cat | the category |
object | $questiondata | form initialisation requires question data. |
- Return values
-
◆ get_test_questions()
qtype_ddimageortext_test_helper::get_test_questions |
( |
| ) |
|
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following file:
- question/type/ddimageortext/tests/helper.php