Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Test implementation of qtype_randomsamatch_question_loader. More...
Public Member Functions | |
__construct ($availablequestions, $choose, $questions) | |
Constructor. More... | |
load_questions () | |
Just return the shortanswers questions passed to the constructor. More... | |
Protected Attributes | |
array | $availablequestions |
hold available shortanswers questionid to choose from. | |
int | $choose |
how many questions to load. | |
array | $questions |
hold available shortanswers questions to choose from. | |
Test implementation of qtype_randomsamatch_question_loader.
Gets the questions from an array passed to the constructor, rather than querying the database.
qtype_randomsamatch_test_question_loader::__construct | ( | $availablequestions, | |
$choose, | |||
$questions | |||
) |
Constructor.
array | $availablequestions | not used for tests. |
int | $choose | how many questions to load (not used here). |
array | $questions | array of questions to use. |
qtype_randomsamatch_test_question_loader::load_questions | ( | ) |
Just return the shortanswers questions passed to the constructor.
array | of short answer questions. |
Reimplemented from qtype_randomsamatch_question_loader.