ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCertificatePdfFileNameFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
24
class
ilCertificatePdfFileNameFactory
25
{
26
private
ilLanguage
$lng
;
27
28
public
function
__construct
(
ilLanguage
$lng)
29
{
30
$this->
lng
=
$lng
;
31
}
32
33
public
function
create
(
ilUserCertificatePresentation
$presentation): string
34
{
35
$objectType = $presentation->
getObjType
();
36
37
return
$this->
fetchCertificateGenerator
($objectType)->createFileName($presentation);
38
}
39
40
private
function
fetchCertificateGenerator
(
string
$objectType):
ilCertificateFilename
41
{
42
$generator =
new
ilCertificatePdfFilename
($this->
lng
);
43
if
(
'sahs'
=== $objectType) {
44
$generator =
new
ilCertificateScormPdfFilename
($generator, $this->
lng
,
new
ilSetting
(
'scorm'
));
45
}
46
47
return
$generator;
48
}
49
}
ilLanguage
ilCertificatePdfFileNameFactory
Definition:
class.ilCertificatePdfFileNameFactory.php:24
ilCertificatePdfFileNameFactory\$lng
ilLanguage $lng
Definition:
class.ilCertificatePdfFileNameFactory.php:26
ilUserCertificatePresentation
Definition:
class.ilUserCertificatePresentation.php:24
ilCertificateFilename
Definition:
interface.ilCertificateFilename.php:24
ilCertificateScormPdfFilename
Definition:
class.ilCertificateScormPdfFilename.php:21
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
ilUserCertificatePresentation\getObjType
getObjType()
Definition:
class.ilUserCertificatePresentation.php:54
ilCertificatePdfFilename
Definition:
class.ilCertificatePdfFilename.php:24
ilCertificatePdfFileNameFactory\fetchCertificateGenerator
fetchCertificateGenerator(string $objectType)
Definition:
class.ilCertificatePdfFileNameFactory.php:40
ilCertificatePdfFileNameFactory\__construct
__construct(ilLanguage $lng)
Definition:
class.ilCertificatePdfFileNameFactory.php:28
ilCertificatePdfFileNameFactory\create
create(ilUserCertificatePresentation $presentation)
Definition:
class.ilCertificatePdfFileNameFactory.php:33
ilSetting
Services
Certificate
classes
File
Certificate
Filename
class.ilCertificatePdfFileNameFactory.php
Generated on Fri Apr 4 2025 22:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)