Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
qtype_multianswer_qe2_attempt_updater Class Reference

Class for converting attempt data for multianswer questions when upgrading attempts to the new question engine. More...

Inheritance diagram for qtype_multianswer_qe2_attempt_updater:
question_qtype_attempt_updater

Public Member Functions

 add_prefix ($field, $i)
 
 compare_answers ($answer1, $answer2)
 
 discard ()
 
 display_response ($response)
 
 explode_answer ($answer)
 
 is_blank_answer ($state)
 
 question_summary ()
 
 response_summary ($state)
 
 right_answer ()
 
 set_data_elements_for_step ($state, &$data)
 
 set_first_step_data_elements ($state, &$data)
 
 supply_missing_first_step_data (&$data)
 
 was_answered ($state)
 

Protected Member Functions

 to_text ($html)
 

Protected Attributes

question_engine_assumption_logger $logger
 
question_engine_attempt_upgrader $qeupdater
 
object $question
 the question definition data.
 
question_behaviour_attempt_updater $updater
 

Detailed Description

Class for converting attempt data for multianswer questions when upgrading attempts to the new question engine.

This class is used by the code in question/engine/upgrade/upgradelib.php.

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

Member Function Documentation

◆ question_summary()

qtype_multianswer_qe2_attempt_updater::question_summary ( )

Reimplemented from question_qtype_attempt_updater.

◆ response_summary()

qtype_multianswer_qe2_attempt_updater::response_summary ( $state)

Reimplemented from question_qtype_attempt_updater.

◆ right_answer()

qtype_multianswer_qe2_attempt_updater::right_answer ( )

Reimplemented from question_qtype_attempt_updater.

◆ set_data_elements_for_step()

qtype_multianswer_qe2_attempt_updater::set_data_elements_for_step ( $state,
& $data )

Reimplemented from question_qtype_attempt_updater.

◆ set_first_step_data_elements()

qtype_multianswer_qe2_attempt_updater::set_first_step_data_elements ( $state,
& $data )

Reimplemented from question_qtype_attempt_updater.

◆ supply_missing_first_step_data()

qtype_multianswer_qe2_attempt_updater::supply_missing_first_step_data ( & $data)

Reimplemented from question_qtype_attempt_updater.

◆ was_answered()

qtype_multianswer_qe2_attempt_updater::was_answered ( $state)

Reimplemented from question_qtype_attempt_updater.


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