ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 22 of file class.ilCertificateVerificationClassMap.php.

Member Function Documentation

◆ getVerificationTypeByType()

ilCertificateVerificationClassMap::getVerificationTypeByType ( string  $type)
Exceptions
ilException

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

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 }
Base class for ILIAS Exception handling.

◆ typeExistsInMap()

ilCertificateVerificationClassMap::typeExistsInMap ( string  $type)
private

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

45 : bool
46 {
47 return array_key_exists($type, $this->map);
48 }

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 24 of file class.ilCertificateVerificationClassMap.php.


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