Test helper class for the multiple choice question type.
More...
Test helper class for the multiple choice question type.
- Copyright
- 2013 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_multichoice_question_data_one_of_four()
static qtype_multichoice_test_helper::get_multichoice_question_data_one_of_four |
( |
| ) |
|
|
static |
Get the question data, as it would be loaded by get_question_options.
- Return values
-
◆ get_multichoice_question_data_two_of_four()
static qtype_multichoice_test_helper::get_multichoice_question_data_two_of_four |
( |
| ) |
|
|
static |
Get the question data, as it would be loaded by get_question_options.
- Return values
-
◆ get_multichoice_question_form_data_one_of_four()
static qtype_multichoice_test_helper::get_multichoice_question_form_data_one_of_four |
( |
| ) |
|
|
static |
Get the question data, as it would be loaded by get_question_options.
- Return values
-
◆ get_multichoice_question_form_data_two_of_four()
static qtype_multichoice_test_helper::get_multichoice_question_form_data_two_of_four |
( |
| ) |
|
|
static |
Get the question data, as it would be loaded by get_question_options.
- Return values
-
◆ 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_multichoice_test_helper::get_test_questions |
( |
| ) |
|
The documentation for this class was generated from the following file: