This class is responsible for loading the dataset that a question needs from the database.
More...
This class is responsible for loading the dataset that a question needs from the database.
- Copyright
- 2011 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
qtype_calculated_dataset_loader::__construct |
( |
|
$questionid | ) |
|
Constructor.
- Parameters
-
int | $questionid | the question to load datasets for. |
◆ get_number_of_items()
qtype_calculated_dataset_loader::get_number_of_items |
( |
| ) |
|
Get the number of items (different values) in each dataset used by this question.
This is the minimum number of items in any dataset used by this question.
- Return values
-
int | the number of items available. |
Reimplemented in qtype_calculated_test_dataset_loader.
◆ get_values()
qtype_calculated_dataset_loader::get_values |
( |
|
$itemnumber | ) |
|
Load a particular set of values for each dataset used by this question.
- Parameters
-
- Return values
-
◆ load_values()
qtype_calculated_dataset_loader::load_values |
( |
|
$itemnumber | ) |
|
|
protected |
The documentation for this class was generated from the following file: