ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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() . '/',
35 default => throw new ilException(sprintf(
36 'The type "%s" is currently not supported for certificates',
37 $type
38 )),
39 };
40 }
Base class for ILIAS Exception handling.

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.

+ Here is the call graph for this function:

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