ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
8{
13
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}
An exception for terminatinating execution or to throw for unit testing.
createFileName(ilUserCertificatePresentation $presentation)
ILIAS Setting Class.