ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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:23
ilCertificateVerificationClassMap\getVerificationTypeByType
getVerificationTypeByType(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:36
ilCertificateVerificationClassMap\$map
array $map
Definition:
class.ilCertificateVerificationClassMap.php:24
ilCertificateVerificationClassMap\typeExistsInMap
typeExistsInMap(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:45
ilException
Base class for ILIAS Exception handling.
Definition:
class.ilException.php:26
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
components
ILIAS
Verification
classes
Certificate
class.ilCertificateVerificationClassMap.php
Generated on Sat Oct 18 2025 23:04:59 for ILIAS by
1.9.4 (using
Doxyfile
)