ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilCertificatePathFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilCertificatePathFactory
22
{
23
public
function
create
(
ilObject
$object): 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
}
41
}
ilException
ilObject
ilCertificatePathConstants\TEST_PATH
final const TEST_PATH
Definition:
class.ilCertificatePathConstants.php:24
ilCertificatePathConstants\EXERCISE_PATH
final const EXERCISE_PATH
Definition:
class.ilCertificatePathConstants.php:25
ilCertificatePathConstants\CMIX_PATH
final const CMIX_PATH
Definition:
class.ilCertificatePathConstants.php:28
ilCertificatePathConstants\SCORM_PATH
final const SCORM_PATH
Definition:
class.ilCertificatePathConstants.php:26
ilCertificatePathFactory\create
create(ilObject $object)
Definition:
class.ilCertificatePathFactory.php:23
ilCertificatePathConstants\COURSE_PATH
final const COURSE_PATH
Definition:
class.ilCertificatePathConstants.php:23
ilObject\getId
getId()
Definition:
class.ilObject.php:294
ilCertificatePathConstants\LTICON_PATH
final const LTICON_PATH
Definition:
class.ilCertificatePathConstants.php:27
ilCertificatePathFactory
Definition:
class.ilCertificatePathFactory.php:21
ilObject\getType
getType()
Definition:
class.ilObject.php:315
ilCertificatePathConstants\STUDY_PROGRAMME_PATH
final const STUDY_PROGRAMME_PATH
Definition:
class.ilCertificatePathConstants.php:29
components
ILIAS
Certificate
classes
File
Template
Path
class.ilCertificatePathFactory.php
Generated on Sat Apr 5 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)