ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCertificateVerificationClassMap.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCertificateVerificationClassMap
8
{
9
private
$map
= array(
10
'crs'
=>
'crsv'
,
11
'tst'
=>
'tstv'
,
12
'exc'
=>
'excv'
,
13
'sahs'
=>
'scov'
14
);
15
21
public
function
getVerificationTypeByType
(
string
$type
) : string
22
{
23
if
(
false
=== $this->
typeExistsInMap
($type)) {
24
throw
new
ilException
(
'The given type '
. $type .
'is not mapped as a verification type on the class map'
);
25
}
26
27
return
$this->map[
$type
];
28
}
29
34
private
function
typeExistsInMap
(
string
$type
) : bool
35
{
36
return
array_key_exists($type, $this->map);
37
}
38
}
ilCertificateVerificationClassMap
Definition:
class.ilCertificateVerificationClassMap.php:7
ilException
$type
$type
Definition:
proxy_ylocal.php:10
ilCertificateVerificationClassMap\typeExistsInMap
typeExistsInMap(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:34
ilCertificateVerificationClassMap\$map
$map
Definition:
class.ilCertificateVerificationClassMap.php:9
php
ilCertificateVerificationClassMap\getVerificationTypeByType
getVerificationTypeByType(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:21
Services
Verification
classes
Certificate
class.ilCertificateVerificationClassMap.php
Generated on Thu Feb 27 2025 19:02:07 for ILIAS by
1.8.13 (using
Doxyfile
)