|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
This class is responsible for loading the questions that a question needs from the database. More...
Public Member Functions | |
| __construct ($availablequestions, $choose) | |
| Constructor. More... | |
| load_questions () | |
| Choose and load the desired number of questions. More... | |
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.