ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 42 of file class.ilCertificateTypeClassMap.php.

References typeExistsInMap().

42  : string
43  {
44  if (!$this->typeExistsInMap($type)) {
45  throw new ilException('The given type ' . $type . 'is not mapped as a class on the class map');
46  }
47 
48  return $this->typeClassMap[$type]['placeholder'];
49  }
+ Here is the call graph for this function:

◆ typeExistsInMap()

ilCertificateTypeClassMap::typeExistsInMap ( string  $type)

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

Referenced by getPlaceHolderClassNameByType().

51  : bool
52  {
53  return array_key_exists($type, $this->typeClassMap);
54  }
+ Here is the caller graph for this function:

Field Documentation

◆ $typeClassMap

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

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


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