ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilCertificatePathFactory Class Reference
+ Collaboration diagram for ilCertificatePathFactory:

Public Member Functions

 create (ilObject $object)
 

Detailed Description

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

Member Function Documentation

◆ create()

ilCertificatePathFactory::create ( ilObject  $object)

Definition at line 23 of file class.ilCertificatePathFactory.php.

References ilCertificatePathConstants\CMIX_PATH, ilCertificatePathConstants\COURSE_PATH, ilCertificatePathConstants\EXERCISE_PATH, ilObject\getId(), ilObject\getType(), ilCertificatePathConstants\LTICON_PATH, ilCertificatePathConstants\SCORM_PATH, ilCertificatePathConstants\STUDY_PROGRAMME_PATH, and ilCertificatePathConstants\TEST_PATH.

23  : string
24  {
25  $type = $object->getType();
26 
27  return match ($type) {
28  'tst' => ilCertificatePathConstants::TEST_PATH . $object->getId() . '/',
29  'crs' => ilCertificatePathConstants::COURSE_PATH . $object->getId() . '/',
30  'sahs' => ilCertificatePathConstants::SCORM_PATH . $object->getId() . '/',
31  'exc' => ilCertificatePathConstants::EXERCISE_PATH . $object->getId() . '/',
32  'lti' => ilCertificatePathConstants::LTICON_PATH . $object->getId() . '/',
33  'cmix' => ilCertificatePathConstants::CMIX_PATH . $object->getId() . '/',
34  'prg' => ilCertificatePathConstants::STUDY_PROGRAMME_PATH . $object->getId() . '/',
35  default => throw new ilException(sprintf(
36  'The type "%s" is currently not supported for certificates',
37  $type
38  )),
39  };
40  }
+ Here is the call graph for this function:

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