Test helper class for the calculated question type.
More...
Test helper class for the calculated question type.
- Copyright
- 2011 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_calculated_question_data_mult()
qtype_calculated_test_helper::get_calculated_question_data_mult |
( |
| ) |
|
Makes a calculated question about multiplying two numbers.
- Return values
-
- Exceptions
-
◆ get_calculated_question_data_sum()
qtype_calculated_test_helper::get_calculated_question_data_sum |
( |
| ) |
|
Makes a calculated question about summing two numbers.
- Return values
-
◆ get_calculated_question_form_data_mult()
qtype_calculated_test_helper::get_calculated_question_form_data_mult |
( |
| ) |
|
Makes a calculated question about multiplying two numbers.
- Return values
-
- Exceptions
-
◆ get_calculated_question_form_data_sum()
qtype_calculated_test_helper::get_calculated_question_form_data_sum |
( |
| ) |
|
Makes a calculated question about summing two numbers.
- 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_calculated_test_helper::get_test_questions |
( |
| ) |
|
◆ make_calculated_question_mult()
qtype_calculated_test_helper::make_calculated_question_mult |
( |
| ) |
|
Makes a calculated question about multiplying two numbers.
- Return values
-
- Exceptions
-
◆ make_calculated_question_sum()
qtype_calculated_test_helper::make_calculated_question_sum |
( |
| ) |
|
Makes a calculated question about summing two numbers.
- Return values
-
The documentation for this class was generated from the following file:
- question/type/calculated/tests/helper.php