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