Development:Dataset dependent: Difference between revisions

From MoodleDocs
mNo edit summary
Line 1: Line 1:
{{Questiontype developer docs}}
{{Questiontype developer docs}}
This is an abstract questiontype that is currently only used by the calculated questiontype.


==Database tables==
==Database tables==
===quiz_dataset_definitions===
This table is an indirect extension to the quiz_questions table, because the quiz_question_datasets table can link a question to one or more datasets. Each dataset represents a variable, that is used either in the questiontext or in the answer to a dataset dependent question.
===quiz_dataset_items===
Dataset items can be created for each dataset. The quiz_dataset_items table stores these possible values for the variables defined in the quiz_dataset_definitions table.
===quiz_question_datasets===
The quiz_question_datasets table is used by dataset dependent questionypes (i.e. calculated) to link datasets to questions.


==Response storage==
==Response storage==

Revision as of 23:41, 5 February 2006

Template:Questiontype developer docs

Database tables

quiz_dataset_definitions

This table is an indirect extension to the quiz_questions table, because the quiz_question_datasets table can link a question to one or more datasets. Each dataset represents a variable, that is used either in the questiontext or in the answer to a dataset dependent question.

quiz_dataset_items

Dataset items can be created for each dataset. The quiz_dataset_items table stores these possible values for the variables defined in the quiz_dataset_definitions table.

quiz_question_datasets

The quiz_question_datasets table is used by dataset dependent questionypes (i.e. calculated) to link datasets to questions.

Response storage

Question->options

State->options