Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
test_question_engine_attempt_upgrader Class Reference

Subclass of question_engine_attempt_upgrader to help with testing. More...

Inheritance diagram for test_question_engine_attempt_upgrader:
question_engine_attempt_upgrader

Public Member Functions

 __construct ($loader, $logger)
 
 convert_question_attempt ($quiz, $attempt, $question, $qsession, $qstates)
 
 get_next_question_session ($attempt, moodle_recordset $questionsessionsrs)
 
 get_question_states ($attempt, $question, moodle_recordset $questionsstatesrs)
 
 load_dataset ($questionid, $selecteditem)
 
 load_question ($questionid, $quizid=null)
 
 prepare_to_restore ()
 
 prevent_timeout ()
 
 save_usage ($preferredbehaviour, $attempt, $qas, $quizlayout)
 
 supply_missing_question_attempt ($quiz, $attempt, $question)
 

Protected Member Functions

 decode_random_attempt ($qstates, $maxmark)
 
 delete_quiz_attempt ($qubaid)
 
 get_converter_class_name ($question, $quiz, $qsessionid)
 
 insert_record ($table, $record, $saveid=true)
 
 set_quba_preferred_behaviour ($qubaid, $preferredbehaviour)
 
 set_quiz_attempt_layout ($qubaid, $layout)
 

Protected Attributes

question_engine_assumption_logger $logger
 
question_engine_upgrade_question_loader $questionloader
 

Detailed Description

Subclass of question_engine_attempt_upgrader to help with testing.

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

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