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