Test helper class for the drag-and-drop words into sentences question type.
More...
Test helper class for the drag-and-drop words into sentences question type.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_ddwtos_question_form_data_fox()
qtype_ddwtos_test_helper::get_ddwtos_question_form_data_fox |
( |
| ) |
|
This is a simple question with choices in three groups.
- Return values
-
stdClass | data to create a ddwtos question. |
◆ get_ddwtos_question_form_data_infinite()
qtype_ddwtos_test_helper::get_ddwtos_question_form_data_infinite |
( |
| ) |
|
This is a simple question with infinite mode.
- Return values
-
stdClass | data to create a ddwtos question. |
◆ get_ddwtos_question_form_data_missingchoiceno()
qtype_ddwtos_test_helper::get_ddwtos_question_form_data_missingchoiceno |
( |
| ) |
|
Get data required to save a drag-drop into text question where the author missed out one of the group numbers.
- Return values
-
stdClass | data to create a ddwtos question. |
◆ get_ddwtos_question_form_data_oddgroups()
qtype_ddwtos_test_helper::get_ddwtos_question_form_data_oddgroups |
( |
| ) |
|
Similar to the 'fox' example above, but using different, non-continuous group numbers.
- Return values
-
stdClass | data to create a ddwtos 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_ddwtos_test_helper::get_test_questions |
( |
| ) |
|
◆ make_ddwtos_question_fox()
qtype_ddwtos_test_helper::make_ddwtos_question_fox |
( |
| ) |
|
◆ make_ddwtos_question_maths()
qtype_ddwtos_test_helper::make_ddwtos_question_maths |
( |
| ) |
|
The documentation for this class was generated from the following file:
- question/type/ddwtos/tests/helper.php