ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References typeExistsInMap().

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  }
+ Here is the call graph for this function:

◆ typeExistsInMap()

ilCertificateTypeClassMap::typeExistsInMap ( string  $type)

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

Referenced by getPlaceHolderClassNameByType().

56  : bool
57  {
58  return array_key_exists($type, $this->typeClassMap);
59  }
+ 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: