ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateScormPdfFilename Class Reference
+ Inheritance diagram for ilCertificateScormPdfFilename:
+ Collaboration diagram for ilCertificateScormPdfFilename:

Public Member Functions

 __construct (ilSetting $scormSetting)
 
 createFileName (ilUserCertificatePresentation $presentation)
 

Private Attributes

 $scormSetting
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateScormPdfFilename::__construct ( ilSetting  $scormSetting)
Parameters
ilSetting$scormSetting

Definition at line 17 of file class.ilCertificateScormPdfFilename.php.

References $scormSetting.

18  {
19  $this->scormSetting = $scormSetting;
20  }

Member Function Documentation

◆ createFileName()

ilCertificateScormPdfFilename::createFileName ( ilUserCertificatePresentation  $presentation)

Implements ilCertificateFilename.

Definition at line 22 of file class.ilCertificateScormPdfFilename.php.

References ilUserCertificatePresentation\getUserCertificate(), and ilUserCertificatePresentation\getUserName().

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  }
+ Here is the call graph for this function:

Field Documentation

◆ $scormSetting

ilCertificateScormPdfFilename::$scormSetting
private

Definition at line 12 of file class.ilCertificateScormPdfFilename.php.

Referenced by __construct().


The documentation for this class was generated from the following file: