ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 23 of file class.ilCertificateTypeClassMap.php.

23 : string
24 {
25 if (false === $this->typeExistsInMap($type)) {
26 throw new ilException('The given type ' . $type . 'is not mapped as a class on the class map');
27 }
28
29 return $this->typeClassMap[$type]['placeholder'];
30 }
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 36 of file class.ilCertificateTypeClassMap.php.

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

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),
'cmix' => array('placeholder' => ilCmiXapiPlaceholderValues::class),
'lti' => array('placeholder' => ilLTIConsumerPlaceholderValues::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: