Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
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.