Class to store the options for a quiz_overview_report.
More...
Class to store the options for a quiz_overview_report.
- Copyright
- 2012 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_initial_form_data()
quiz_overview_options::get_initial_form_data |
( |
| ) |
|
◆ get_url()
mod_quiz_attempts_report_options::get_url |
( |
| ) |
|
|
inherited |
Get the URL to show the report with these options.
- Return values
-
◆ get_url_params()
quiz_overview_options::get_url_params |
( |
| ) |
|
|
protected |
Get the URL parameters required to show the report with these options.
- Return values
-
array | URL parameter name => value. |
Reimplemented from mod_quiz_attempts_report_options.
◆ is_showing_finished_attempts()
mod_quiz_attempts_report_options::is_showing_finished_attempts |
( |
| ) |
|
|
protectedinherited |
Whether the options are such that finished attempts are being shown.
- Return values
-
◆ process_settings_from_form()
mod_quiz_attempts_report_options::process_settings_from_form |
( |
|
$fromform | ) |
|
|
inherited |
Process the data we get when the settings form is submitted.
This includes updating the fields of this class, and updating the user preferences where appropriate.
- Parameters
-
object | $fromform | The data from $mform->get_data() from the settings form. |
◆ resolve_dependencies()
quiz_overview_options::resolve_dependencies |
( |
| ) |
|
◆ setup_from_form_data()
quiz_overview_options::setup_from_form_data |
( |
|
$fromform | ) |
|
Set the fields of this object from the form data.
- Parameters
-
object | $fromform | The data from $mform->get_data() from the settings form. |
Reimplemented from mod_quiz_attempts_report_options.
◆ setup_from_params()
quiz_overview_options::setup_from_params |
( |
| ) |
|
◆ setup_from_user_preferences()
quiz_overview_options::setup_from_user_preferences |
( |
| ) |
|
Set the fields of this object from the user's preferences.
(For those settings that are backed by user-preferences).
Reimplemented from mod_quiz_attempts_report_options.
◆ update_user_preferences()
quiz_overview_options::update_user_preferences |
( |
| ) |
|
Update the user preferences so they match the settings in this object.
(For those settings that are backed by user-preferences).
Reimplemented from mod_quiz_attempts_report_options.
◆ $group
int mod_quiz_attempts_report_options::$group = 0 |
|
inherited |
the currently selected group.
0 if no group is selected.
◆ $statefields
array mod_quiz_attempts_report_options::$statefields |
|
staticprotectedinherited |
Initial value:= array(
)
string const FINISHED
to identify the finished state.
Definition: attemptlib.php:592
string const ABANDONED
to identify the abandoned state.
Definition: attemptlib.php:594
string const OVERDUE
to identify the overdue state.
Definition: attemptlib.php:590
string const IN_PROGRESS
to identify the in progress state.
Definition: attemptlib.php:588
form field name => corresponding quiz_attempt:: state constant.
◆ $states
array null mod_quiz_attempts_report_options::$states |
|
inherited |
The documentation for this class was generated from the following file: