Helper class.
More...
|
static | format_icon_link ($url, $icon, $alt, $iconcomponent='moodle', $options=[]) |
| Get a filler icon for display in the actions column of a table.
|
|
static | get_seb_config_content (string $cmid) |
| Get seb config content for a particular quiz.
|
|
static | get_seb_file_headers (int $expiretime=null) |
| A helper function to get a list of seb config file headers.
|
|
static | is_valid_seb_config (string $sebconfig) |
| Validate seb config string.
|
|
static | send_seb_config_file (string $contents) |
| Serve a file to browser for download.
|
|
Helper class.
- Copyright
- 2020 Catalyst IT
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ format_icon_link()
static quizaccess_seb\helper::format_icon_link |
( |
| $url, |
|
|
| $icon, |
|
|
| $alt, |
|
|
| $iconcomponent = 'moodle', |
|
|
| $options = [] ) |
|
static |
Get a filler icon for display in the actions column of a table.
- Parameters
-
string | $url | The URL for the icon. |
string | $icon | The icon identifier. |
string | $alt | The alt text for the icon. |
string | $iconcomponent | The icon component. |
array | $options | Display options. |
- Return values
-
◆ get_seb_config_content()
static quizaccess_seb\helper::get_seb_config_content |
( |
string | $cmid | ) |
|
|
static |
Get seb config content for a particular quiz.
This method checks caps.
- Parameters
-
string | $cmid | The course module ID for a quiz with config. |
- Return values
-
◆ get_seb_file_headers()
static quizaccess_seb\helper::get_seb_file_headers |
( |
int | $expiretime = null | ) |
|
|
static |
A helper function to get a list of seb config file headers.
- Parameters
-
int | null | $expiretime | Unix timestamp |
- Return values
-
◆ is_valid_seb_config()
static quizaccess_seb\helper::is_valid_seb_config |
( |
string | $sebconfig | ) |
|
|
static |
Validate seb config string.
- Parameters
-
- Return values
-
◆ send_seb_config_file()
static quizaccess_seb\helper::send_seb_config_file |
( |
string | $contents | ) |
|
|
static |
Serve a file to browser for download.
- Parameters
-
string | $contents | Contents of file. |
The documentation for this class was generated from the following file: