ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCertificatePdfFileNameFactory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCertificatePdfFileNameFactory
8
{
9
public
function
create
(
ilUserCertificatePresentation
$presentation)
10
{
11
$objectType = $presentation->
getUserCertificate
()->getObjType();
12
$pdfFileGenerator = $this->
fetchCertificateGenerator
($objectType);
13
14
$fileName = $pdfFileGenerator->createFileName($presentation);
15
16
return
$fileName .
'.pdf'
;
17
}
18
23
private
function
fetchCertificateGenerator
(
string
$objectType)
24
{
25
if
($objectType ===
'sahs'
) {
26
return
new
ilCertificateScormPdfFilename
(
new
ilSetting
(
'scorm'
));
27
}
28
29
return
new
ilCertificatePdfFilename
();
30
}
31
}
ilCertificatePdfFileNameFactory
Definition:
class.ilCertificatePdfFileNameFactory.php:7
ilUserCertificatePresentation\getUserCertificate
getUserCertificate()
Definition:
class.ilUserCertificatePresentation.php:50
ilUserCertificatePresentation
Definition:
class.ilUserCertificatePresentation.php:7
ilCertificateScormPdfFilename
Definition:
class.ilCertificateScormPdfFilename.php:7
ilCertificatePdfFilename
Definition:
class.ilCertificatePdfFilename.php:7
php
ilCertificatePdfFileNameFactory\fetchCertificateGenerator
fetchCertificateGenerator(string $objectType)
Definition:
class.ilCertificatePdfFileNameFactory.php:23
ilCertificatePdfFileNameFactory\create
create(ilUserCertificatePresentation $presentation)
Definition:
class.ilCertificatePdfFileNameFactory.php:9
ilSetting
Services
Certificate
classes
File
Certificate
Filename
class.ilCertificatePdfFileNameFactory.php
Generated on Thu Jan 30 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)