- Copyright
- 2008 Tim Hunt
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_button_container_class()
mod_quiz\output\navigation_panel_base::get_button_container_class |
( |
| ) |
|
|
inherited |
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 |
( |
| ) |
|
|
inherited |
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_review::get_question_url |
( |
| $slot | ) |
|
Get the URL to navigate to a particular question.
- Parameters
-
int | $slot | slot number, to identify the question. |
- Return values
-
moodle_url|null | URL if the user can navigate there, or null if they cannot. |
Reimplemented from mod_quiz\output\navigation_panel_base.
◆ get_state_string()
mod_quiz\output\navigation_panel_base::get_state_string |
( |
question_attempt | $qa, |
|
|
| $showcorrectness ) |
|
protectedinherited |
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 | ) |
|
|
inherited |
◆ render_end_bits()
mod_quiz\output\navigation_panel_review::render_end_bits |
( |
renderer | $output | ) |
|
Hook that subclasses must override to do output after the question buttons.
- Parameters
-
renderer | $output | the quiz renderer to use. |
- Return values
-
Reimplemented from mod_quiz\output\navigation_panel_base.
◆ render_restart_preview_link()
mod_quiz\output\navigation_panel_base::render_restart_preview_link |
( |
| $output | ) |
|
|
protectedinherited |
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 |
( |
| ) |
|
|
inherited |
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_review.php