Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Test implementation of qtype_randomsamatch_question_loader. More...
Public Member Functions | |
__construct ($availablequestions, $choose, $questions) | |
Constructor. | |
load_questions () | |
Just return the shortanswers questions passed to the constructor. | |
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.