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

Helper class for questions that use datasets. More...

Static Public Member Functions

static apply_attempt_state (qtype_calculated_question_with_expressions $question, question_attempt_step $step)
 
static start_attempt (qtype_calculated_question_with_expressions $question, question_attempt_step $step, $variant)
 

Detailed Description

Helper class for questions that use datasets.

Works with the interface qtype_calculated_question_with_expressions and the class qtype_calculated_dataset_loader to set up the value of each variable in start_attempt, and restore that in apply_attempt_state.

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

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