◆ __construct()
◆ createPDF()
ilCertificatePdfAction::createPDF |
( |
int |
$userId, |
|
|
int |
$objectId |
|
) |
| |
- Parameters
-
integer | $objectId | |
integer | $userId | |
- Returns
- string
- Exceptions
-
Definition at line 70 of file class.ilCertificatePdfAction.php.
70 : string
71 {
72 $pdfScalar = $this->pdfGenerator->generateCurrentActiveCertificate($userId, $objectId);
73
74 return $pdfScalar;
75 }
Referenced by downloadPdf().
◆ downloadPdf()
ilCertificatePdfAction::downloadPdf |
( |
int |
$userId, |
|
|
int |
$objectId |
|
) |
| |
- Parameters
-
int | $userId | |
int | $objectId | |
string | $pdfDownloadName | |
- Returns
- string
Definition at line 83 of file class.ilCertificatePdfAction.php.
83 : string
84 {
85 try {
86 $pdfScalar = $this->
createPDF($userId, $objectId);
87
88 $fileName = $this->pdfGenerator->generateFileName($userId, $objectId);
89
90 $this->ilUtilHelper->deliverData(
91 $pdfScalar,
92 $fileName,
93 'application/pdf'
94 );
96 $this->errorHandler->raiseError($this->translatedErrorText, $this->errorHandler->MESSAGE);
97 return '';
98 }
99
100 return $pdfScalar;
101 }
createPDF(int $userId, int $objectId)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
References createPDF().
◆ $errorHandler
ilCertificatePdfAction::$errorHandler |
|
private |
◆ $ilUtilHelper
ilCertificatePdfAction::$ilUtilHelper |
|
private |
◆ $logger
ilCertificatePdfAction::$logger |
|
private |
◆ $pdfGenerator
ilCertificatePdfAction::$pdfGenerator |
|
private |
◆ $translatedErrorText
ilCertificatePdfAction::$translatedErrorText |
|
private |
The documentation for this class was generated from the following file: