Helper class with general purpose tiny functions.
More...
Helper class with general purpose tiny functions.
- Copyright
- 2017 David Monllao
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ class_to_option()
static tool_analytics\output\helper::class_to_option |
( |
| $class | ) |
|
|
static |
Converts a class full name to a select option key.
- Parameters
-
- Return values
-
◆ option_to_class()
static tool_analytics\output\helper::option_to_class |
( |
| $option | ) |
|
|
static |
option_to_class
- Parameters
-
- Return values
-
◆ prediction_context_selector()
static tool_analytics\output\helper::prediction_context_selector |
( |
array | $contexts, |
|
|
moodle_url | $url, |
|
|
renderer_base | $output, |
|
|
?int | $selected = null, |
|
|
?bool | $includeall = false, |
|
|
?bool | $shortentext = true ) |
|
static |
Convert a list of contexts to an associative array where the value is the context name.
- Parameters
-
- Return values
-
◆ reset_page()
static tool_analytics\output\helper::reset_page |
( |
| ) |
|
|
static |
Resets the current page.
Note that this function can only be used by analytics pages that work at the system context.
- Return values
-
◆ set_navbar()
static tool_analytics\output\helper::set_navbar |
( |
string | $title, |
|
|
moodle_url | $url, |
|
|
?\context | $context = null ) |
|
static |
Sets an analytics > analytics models > $title breadcrumb.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/analytics/classes/output/helper.php