Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
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.