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.

References $type, and typeExistsInMap().

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

References $type.

Referenced by getPlaceHolderClassNameByType().

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