- Copyright
- 2008 Tim Hunt
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
Constructor.
- Parameters
-
quiz_attempt | $attemptobj | construct the panel for this attempt. |
question_display_options | $options | display options in force. |
int | $page | which page of the quiz attempt is being shown, -1 if all. |
bool | $showall | whether all pages are being shown at once. |
◆ get_button_container_class()
mod_quiz\output\navigation_panel_base::get_button_container_class |
( |
| ) |
|
Return 'allquestionsononepage' as CSS class name when $showall is set, otherwise, return 'multipages' as CSS class name.
- Return values
-
◆ get_question_buttons()
mod_quiz\output\navigation_panel_base::get_question_buttons |
( |
| ) |
|
Get the buttons and section headings to go in the quiz navigation block.
- Return values
-
renderable[] | the buttons, possibly interleaved with section headings. |
◆ get_question_url()
mod_quiz\output\navigation_panel_base::get_question_url |
( |
| $slot | ) |
|
|
abstractprotected |
◆ get_state_string()
mod_quiz\output\navigation_panel_base::get_state_string |
( |
question_attempt | $qa, |
|
|
| $showcorrectness ) |
|
protected |
Get the human-readable description of the current state of a particular question.
- Parameters
-
question_attempt | $qa | the attempt at the question of interest. |
bool | $showcorrectness | whether the current use is allowed to see if they have got the question right. |
- Return values
-
string | Human-readable description of the state. |
◆ render_before_button_bits()
mod_quiz\output\navigation_panel_base::render_before_button_bits |
( |
renderer | $output | ) |
|
◆ render_end_bits()
mod_quiz\output\navigation_panel_base::render_end_bits |
( |
renderer | $output | ) |
|
|
abstract |
◆ render_restart_preview_link()
mod_quiz\output\navigation_panel_base::render_restart_preview_link |
( |
| $output | ) |
|
|
protected |
Render the restart preview button.
- Parameters
-
renderer | $output | the quiz renderer to use. |
- Return values
-
◆ user_picture()
mod_quiz\output\navigation_panel_base::user_picture |
( |
| ) |
|
Get the user picture which should be displayed, if required.
- Return values
-
The documentation for this class was generated from the following file:
- mod/quiz/classes/output/navigation_panel_base.php