Test implementation of qtype_calculated_dataset_loader.
More...
|
| $aresynchronised = [] |
|
int | $itemsavailable = null |
| the id of the question we are helping.
|
|
int | $questionid |
| the id of the question we are helping.
|
|
| $valuesets |
|
Test implementation of qtype_calculated_dataset_loader.
Gets the values from an array passed to the constructor, rather than querying the database.
- Copyright
- 2011 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ datasets_are_synchronised()
qtype_calculated_test_dataset_loader::datasets_are_synchronised |
( |
| $category | ) |
|
◆ get_number_of_items()
qtype_calculated_test_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 from qtype_calculated_dataset_loader.
◆ get_values()
qtype_calculated_dataset_loader::get_values |
( |
| $itemnumber | ) |
|
|
inherited |
Load a particular set of values for each dataset used by this question.
- Parameters
-
- Return values
-
◆ load_values()
qtype_calculated_test_dataset_loader::load_values |
( |
| $itemnumber | ) |
|
Actually query the database for the values.
- Parameters
-
int | $itemnumber | which set of values to load. |
- Return values
-
Reimplemented from qtype_calculated_dataset_loader.
◆ set_are_synchronised()
qtype_calculated_test_dataset_loader::set_are_synchronised |
( |
| $category, |
|
|
| $aresychronised ) |
The documentation for this class was generated from the following file:
- question/type/calculated/tests/helper.php