Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
quizaccess_seb\link_generator Class Reference

Generate the links to open/download the Safe Exam Browser with correct settings. More...

Static Public Member Functions

static get_link (string $cmid, bool $seb=false, bool $secure=true)
 Get a link to force the download of the file over https or sebs protocols. More...
 

Detailed Description

Generate the links to open/download the Safe Exam Browser with correct settings.

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

Member Function Documentation

◆ get_link()

static quizaccess_seb\link_generator::get_link ( string  $cmid,
bool  $seb = false,
bool  $secure = true 
)
static

Get a link to force the download of the file over https or sebs protocols.

Parameters
string$cmidCourse module ID.
bool$sebWhether to use a seb:// scheme or fall back to http:// scheme.
bool$secureWhether to use HTTPS or HTTP protocol.
Return values
stringA URL.

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