ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCertificatePathFactory.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCertificatePathFactory
8
{
9
public
function
create
(
ilObject
$object)
10
{
11
$type
= $object->
getType
();
12
13
switch
(
$type
) {
14
case
'tst'
:
15
$certificatePath =
ilCertificatePathConstants::TEST_PATH
. $object->
getId
() .
'/'
;
16
break
;
17
case
'crs'
:
18
$certificatePath =
ilCertificatePathConstants::COURSE_PATH
. $object->
getId
() .
'/'
;
19
break
;
20
case
'sahs'
:
21
$certificatePath =
ilCertificatePathConstants::SCORM_PATH
. $object->
getId
() .
'/'
;
22
break
;
23
case
'exc'
:
24
$certificatePath =
ilCertificatePathConstants::EXERCISE_PATH
. $object->
getId
() .
'/'
;
25
break
;
26
case
'lti'
:
27
$certificatePath =
ilCertificatePathConstants::LTICON_PATH
. $object->
getId
() .
'/'
;
28
break
;
29
case
'cmix'
:
30
$certificatePath =
ilCertificatePathConstants::CMIX_PATH
. $object->
getId
() .
'/'
;
31
break
;
32
case
'prg'
:
33
$certificatePath =
ilCertificatePathConstants::STUDY_PROGRAMME_PATH
. $object->
getId
() .
'/'
;
34
break
;
35
default
:
36
throw
new
ilException
(sprintf(
37
'The type "%s" is currently not supported for certificates'
,
38
$type
39
));
40
break
;
41
}
42
43
return
$certificatePath;
44
}
45
}
ilException
ilObject
$type
$type
Definition:
proxy_ylocal.php:10
ilCertificatePathConstants\SCORM_PATH
const SCORM_PATH
Definition:
class.ilCertificatePathConstants.php:14
ilCertificatePathConstants\TEST_PATH
const TEST_PATH
Definition:
class.ilCertificatePathConstants.php:12
ilCertificatePathConstants\STUDY_PROGRAMME_PATH
const STUDY_PROGRAMME_PATH
Definition:
class.ilCertificatePathConstants.php:17
ilCertificatePathFactory\create
create(ilObject $object)
Definition:
class.ilCertificatePathFactory.php:9
ilCertificatePathConstants\CMIX_PATH
const CMIX_PATH
Definition:
class.ilCertificatePathConstants.php:16
ilObject\getId
getId()
get object id public
Definition:
class.ilObject.php:319
ilCertificatePathConstants\EXERCISE_PATH
const EXERCISE_PATH
Definition:
class.ilCertificatePathConstants.php:13
ilCertificatePathFactory
Definition:
class.ilCertificatePathFactory.php:7
ilCertificatePathConstants\COURSE_PATH
const COURSE_PATH
Definition:
class.ilCertificatePathConstants.php:11
ilObject\getType
getType()
get object type public
Definition:
class.ilObject.php:360
ilCertificatePathConstants\LTICON_PATH
const LTICON_PATH
Definition:
class.ilCertificatePathConstants.php:15
Services
Certificate
classes
File
Template
Path
class.ilCertificatePathFactory.php
Generated on Wed Apr 9 2025 21:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)