ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCertificateScormPdfFilename.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
ilCertificateScormPdfFilename
implements
ilCertificateFilename
8
{
12
private
$scormSetting
;
13
17
public
function
__construct
(
ilSetting
$scormSetting
)
18
{
19
$this->scormSetting =
$scormSetting
;
20
}
21
22
public
function
createFileName
(
ilUserCertificatePresentation
$presentation)
23
{
24
$short_title = $this->scormSetting->get(
'certificate_short_name_'
. $presentation->
getUserCertificate
()->getObjId());
25
26
$pdfDownloadName = strftime(
'%y%m%d'
, time()) .
'_'
. $presentation->
getUserName
() .
'_'
. $short_title .
'_certificate'
;
27
28
return
$pdfDownloadName;
29
}
30
}
ilCertificateScormPdfFilename\$scormSetting
$scormSetting
Definition:
class.ilCertificateScormPdfFilename.php:12
ilUserCertificatePresentation\getUserCertificate
getUserCertificate()
Definition:
class.ilUserCertificatePresentation.php:50
ilUserCertificatePresentation
Definition:
class.ilUserCertificatePresentation.php:7
ilCertificateScormPdfFilename\createFileName
createFileName(ilUserCertificatePresentation $presentation)
Definition:
class.ilCertificateScormPdfFilename.php:22
ilCertificateFilename
Definition:
interface.ilCertificateFilename.php:7
ilUserCertificatePresentation\getUserName
getUserName()
Definition:
class.ilUserCertificatePresentation.php:74
ilCertificateScormPdfFilename
Definition:
class.ilCertificateScormPdfFilename.php:7
ilCertificateScormPdfFilename\__construct
__construct(ilSetting $scormSetting)
Definition:
class.ilCertificateScormPdfFilename.php:17
php
ilSetting
Services
Certificate
classes
File
Certificate
Filename
class.ilCertificateScormPdfFilename.php
Generated on Thu Jan 30 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)