Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
qtype_randomsamatch_test_question_loader Class Reference

Test implementation of qtype_randomsamatch_question_loader. More...

Inheritance diagram for qtype_randomsamatch_test_question_loader:
qtype_randomsamatch_question_loader

Public Member Functions

 __construct ($availablequestions, $choose, $questions)
 Constructor.
 
 load_questions ()
 Just return the shortanswers questions passed to the constructor.
 

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.
 

Detailed Description

Test implementation of qtype_randomsamatch_question_loader.

Gets the questions from an array passed to the constructor, rather than querying the database.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

qtype_randomsamatch_test_question_loader::__construct ( $availablequestions,
$choose,
$questions )

Constructor.

Parameters
array$availablequestionsnot used for tests.
int$choosehow many questions to load (not used here).
array$questionsarray of questions to use.

Member Function Documentation

◆ load_questions()

qtype_randomsamatch_test_question_loader::load_questions ( )

Just return the shortanswers questions passed to the constructor.

Return values
arrayof short answer questions.

Reimplemented from qtype_randomsamatch_question_loader.


The documentation for this class was generated from the following file: