ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilCertificateVerificationClassMap.php
Go to the documentation of this file.
1
<?php
2
22
class
ilCertificateVerificationClassMap
23
{
24
private
array
$map
= array(
25
'crs'
=>
'crsv'
,
26
'tst'
=>
'tstv'
,
27
'exc'
=>
'excv'
,
28
'sahs'
=>
'scov'
,
29
'cmix'
=>
'cmxv'
,
30
'lti'
=>
'ltiv'
31
);
32
36
public
function
getVerificationTypeByType
(
37
string
$type
38
): string {
39
if
(
false
=== $this->
typeExistsInMap
($type)) {
40
throw
new
ilException
(
'The given type '
. $type .
'is not mapped as a verification type on the class map'
);
41
}
42
return
$this->map[$type];
43
}
44
45
private
function
typeExistsInMap
(
string
$type): bool
46
{
47
return
array_key_exists($type, $this->map);
48
}
49
}
ilCertificateVerificationClassMap
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilCertificateVerificationClassMap.php:22
ilException
ilCertificateVerificationClassMap\typeExistsInMap
typeExistsInMap(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:45
ilCertificateVerificationClassMap\$map
array $map
Definition:
class.ilCertificateVerificationClassMap.php:24
ilCertificateVerificationClassMap\getVerificationTypeByType
getVerificationTypeByType(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:36
components
ILIAS
Verification
classes
Certificate
class.ilCertificateVerificationClassMap.php
Generated on Sun Aug 31 2025 23:04:20 for ILIAS by
1.8.13 (using
Doxyfile
)