ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
'cmix'
=>
'cmxv'
,
15
'lti'
=>
'ltiv'
16
);
17
23
public
function
getVerificationTypeByType
(
string
$type
) : string
24
{
25
if
(
false
=== $this->
typeExistsInMap
($type)) {
26
throw
new
ilException
(
'The given type '
. $type .
'is not mapped as a verification type on the class map'
);
27
}
28
29
return
$this->map[
$type
];
30
}
31
36
private
function
typeExistsInMap
(
string
$type
) : bool
37
{
38
return
array_key_exists($type, $this->map);
39
}
40
}
ilCertificateVerificationClassMap
Definition:
class.ilCertificateVerificationClassMap.php:7
ilException
$type
$type
Definition:
proxy_ylocal.php:10
ilCertificateVerificationClassMap\typeExistsInMap
typeExistsInMap(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:36
ilCertificateVerificationClassMap\$map
$map
Definition:
class.ilCertificateVerificationClassMap.php:9
ilCertificateVerificationClassMap\getVerificationTypeByType
getVerificationTypeByType(string $type)
Definition:
class.ilCertificateVerificationClassMap.php:23
Services
Verification
classes
Certificate
class.ilCertificateVerificationClassMap.php
Generated on Sun Aug 31 2025 20:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)