ILIAS  release_8 Revision v8.24
ilCertificateVerificationClassMap Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilCertificateVerificationClassMap:

Public Member Functions

 getVerificationTypeByType (string $type)
 

Private Member Functions

 typeExistsInMap (string $type)
 

Private Attributes

array $map
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 19 of file class.ilCertificateVerificationClassMap.php.

Member Function Documentation

◆ getVerificationTypeByType()

ilCertificateVerificationClassMap::getVerificationTypeByType ( string  $type)
Exceptions
ilException

Definition at line 33 of file class.ilCertificateVerificationClassMap.php.

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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$type

References $type.

◆ typeExistsInMap()

ilCertificateVerificationClassMap::typeExistsInMap ( string  $type)
private

Definition at line 42 of file class.ilCertificateVerificationClassMap.php.

42 : bool
43 {
44 return array_key_exists($type, $this->map);
45 }

References $type.

Field Documentation

◆ $map

array ilCertificateVerificationClassMap::$map
private
Initial value:
= array(
'crs' => 'crsv',
'tst' => 'tstv',
'exc' => 'excv',
'sahs' => 'scov',
'cmix' => 'cmxv',
'lti' => 'ltiv'
)

Definition at line 21 of file class.ilCertificateVerificationClassMap.php.


The documentation for this class was generated from the following file: