ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCertificateTypeClassMap Class Reference
+ Collaboration diagram for ilCertificateTypeClassMap:

Public Member Functions

 getPlaceHolderClassNameByType (string $type)
 
 typeExistsInMap (string $type)
 

Private Attributes

array $typeClassMap
 

Detailed Description

Member Function Documentation

◆ getPlaceHolderClassNameByType()

ilCertificateTypeClassMap::getPlaceHolderClassNameByType ( string  $type)
Exceptions
ilException

Definition at line 47 of file class.ilCertificateTypeClassMap.php.

47 : string
48 {
49 if (!$this->typeExistsInMap($type)) {
50 throw new ilException('The given type ' . $type . 'is not mapped as a class on the class map');
51 }
52
53 return $this->typeClassMap[$type]['placeholder'];
54 }
Base class for ILIAS Exception handling.

References typeExistsInMap().

+ Here is the call graph for this function:

◆ typeExistsInMap()

ilCertificateTypeClassMap::typeExistsInMap ( string  $type)

Definition at line 56 of file class.ilCertificateTypeClassMap.php.

56 : bool
57 {
58 return array_key_exists($type, $this->typeClassMap);
59 }

Referenced by getPlaceHolderClassNameByType().

+ Here is the caller graph for this function:

Field Documentation

◆ $typeClassMap

array ilCertificateTypeClassMap::$typeClassMap
private
Initial value:
= [
'crs' => ['placeholder' => CoursePlaceholderValues::class],
'tst' => ['placeholder' => TestPlaceholderValues::class],
'exc' => ['placeholder' => ExercisePlaceholderValues::class],
'cmix' => ['placeholder' => ilCmiXapiPlaceholderValues::class],
'lti' => ['placeholder' => ilLTIConsumerPlaceholderValues::class],
'sahs' => ['placeholder' => ilScormPlaceholderValues::class],
'prg' => ['placeholder' => ilStudyProgrammePlaceholderValues::class]
]

Definition at line 34 of file class.ilCertificateTypeClassMap.php.


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