Function __global->score_quiz
Definitions
sources/quiz.php
- Score a particular quiz entry.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$entry_id | AUTO_LINK | required parameter | N/A | N/A | Entry ID |
$quiz_id | ?AUTO_LINK | Null | N/A | N/A | Quiz ID (null: look up from entry ID) |
$quiz | ?array | Null | N/A | N/A | Quiz row (null: look up from entry ID) |
$questions | ?array | Null | N/A | N/A | Question rows (null: look up from entry ID) |
$reveal_all | boolean | False | N/A | N/A | Whether to show answers, regardless of whether the quiz is set to do so |
Return
- A tuple of quiz result details
- Type: array
- Set: N/A
- Range: N/A