ILIAS  release_8 Revision v8.24
class.ilCertificateVerificationClassMap.php
Go to the documentation of this file.
1<?php
2
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
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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
$type