ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCertificateVerificationClassMap.php
Go to the documentation of this file.
1<?php
2
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
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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for ILIAS Exception handling.
if(!file_exists('../ilias.ini.php'))