ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $type, and typeExistsInMap().

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  }
$type
+ 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.

References $type.

Referenced by getPlaceHolderClassNameByType().

36  : bool
37  {
38  return array_key_exists($type, $this->typeClassMap);
39  }
$type
+ 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: