Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
quizaccess_seb\helper Class Reference

Helper class. More...

Static Public Member Functions

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.
 

Detailed Description

Helper class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ 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$urlThe URL for the icon.
string$iconThe icon identifier.
string$altThe alt text for the icon.
string$iconcomponentThe icon component.
array$optionsDisplay options.
Return values
string

◆ 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$cmidThe course module ID for a quiz with config.
Return values
stringSEB config string.

◆ 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$expiretimeUnix timestamp
Return values
array

◆ is_valid_seb_config()

static quizaccess_seb\helper::is_valid_seb_config ( string $sebconfig)
static

Validate seb config string.

Parameters
string$sebconfig
Return values
bool

◆ send_seb_config_file()

static quizaccess_seb\helper::send_seb_config_file ( string $contents)
static

Serve a file to browser for download.

Parameters
string$contentsContents of file.

The documentation for this class was generated from the following file: