Function __global->parse_quiz_question_line
Definitions
sources/quiz2.php
- Parse a quiz question line, to find the question options.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$question | string | required parameter | N/A | N/A | The quiz question line |
$answers | array | required parameter | N/A | N/A | List of possible answers (used for validation purposes) |
$question_extra_text | string | Blank (empty string) | N/A | N/A | The quiz question description |
$do_validation | boolean | True | N/A | N/A | Whether to perform validation / corrections |
Return
- A tuple: Question, question type, required?, marked?, question extra text (description)
- Type: array
- Set: N/A
- Range: N/A