ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateTypeClassMap Class Reference
+ Collaboration diagram for ilCertificateTypeClassMap:

Public Member Functions

 getPlaceHolderClassNameByType ($type)
 
 typeExistsInMap ($type)
 

Private Attributes

 $typeClassMap
 

Detailed Description

Member Function Documentation

◆ getPlaceHolderClassNameByType()

ilCertificateTypeClassMap::getPlaceHolderClassNameByType (   $type)
Parameters
string$type
Returns
string
Exceptions
ilException

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

21 : string
22 {
23 if (false === $this->typeExistsInMap($type)) {
24 throw new ilException('The given type ' . $type . 'is not mapped as a class on the class map');
25 }
26
27 return $this->typeClassMap[$type]['placeholder'];
28 }
Base class for ILIAS Exception handling.
$type

References $type, and typeExistsInMap().

+ Here is the call graph for this function:

◆ typeExistsInMap()

ilCertificateTypeClassMap::typeExistsInMap (   $type)
Parameters
string$type
Returns
bool

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

34 : bool
35 {
36 return array_key_exists($type, $this->typeClassMap);
37 }

References $type.

Referenced by getPlaceHolderClassNameByType().

+ Here is the caller graph for this function:

Field Documentation

◆ $typeClassMap

ilCertificateTypeClassMap::$typeClassMap
private
Initial value:
= array(
'crs' => array('placeholder' => ilCoursePlaceholderValues::class),
'tst' => array('placeholder' => ilTestPlaceholderValues::class),
'exc' => array('placeholder' => ilExercisePlaceholderValues::class),
'sahs' => array('placeholder' => ilScormPlaceholderValues::class),
)

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


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