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

Class for generating and representing a Safe Exam Browser config key. More...

Public Member Functions

 __construct (string $hash)
 The config_key constructor. More...
 
 get_hash ()
 Get the Config Key hash. More...
 

Static Public Member Functions

static generate (string $xml)
 Generate the Config Key hash from an SEB Config XML string. More...
 

Detailed Description

Class for generating and representing a Safe Exam Browser config key.

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

Constructor & Destructor Documentation

◆ __construct()

quizaccess_seb\config_key::__construct ( string  $hash)

The config_key constructor.

Parameters
string$hashThe Config Key hash.

Member Function Documentation

◆ generate()

static quizaccess_seb\config_key::generate ( string  $xml)
static

Generate the Config Key hash from an SEB Config XML string.

See https://safeexambrowser.org/developer/seb-config-key.html for more information about the process.

Parameters
string$xmlA PList XML string, representing SEB config.
Return values
config_keyThis config key instance.

◆ get_hash()

quizaccess_seb\config_key::get_hash ( )

Get the Config Key hash.

Return values
stringThe Config Key hash

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