| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
This class is responsible for loading the questions that a question needs from the database. More...
| Public Member Functions | |
| __construct ($availablequestions, $choose) | |
| Constructor. | |
| load_questions () | |
| Choose and load the desired number of questions. | |
| Protected Attributes | |
| array | $availablequestions | 
| hold available shortanswers questionid to choose from. | |
| int | $choose | 
| how many questions to load. | |
This class is responsible for loading the questions that a question needs from the database.
| qtype_randomsamatch_question_loader::__construct | ( | $availablequestions, | |
| $choose ) | 
Constructor.
| array | $availablequestions | array of available question ids. | 
| int | $choose | how many questions to load. | 
| qtype_randomsamatch_question_loader::load_questions | ( | ) | 
Choose and load the desired number of questions.
| array | of short answer questions. | 
Reimplemented in qtype_randomsamatch_test_question_loader.