ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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)
Parameters
string$type
Returns
string
Exceptions
ilException

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

References $type, and typeExistsInMap().

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

◆ typeExistsInMap()

ilCertificateTypeClassMap::typeExistsInMap ( string  $type)

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

Referenced by getPlaceHolderClassNameByType().

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