1 <?php declare(strict_types=1);
34 ServerRequestInterface
$request = null,
61 $this->
language->loadLanguageModule(
'cert');
70 $cmd = $this->controller->getCmd();
73 case self::CMD_DOWNLOAD:
89 $pdfGenerator =
new ilPdfGenerator($userCertificateRepository, $this->certificateLogger);
91 $userCertificateId = (int) $this->request->getQueryParams()[
'certificate_id'];
93 $userCertificate = $userCertificateRepository->fetchCertificate($userCertificateId);
96 $this->certificateLogger,
99 $this->
language->txt(
'error_creating_certificate_pdf')
102 $pdfAction->
downloadPdf($userCertificate->getUserId(), $userCertificate->getObjId());
__construct(ilLanguage $language=null, ServerRequestInterface $request=null, ilLogger $certificateLogger=null, ilCtrl $controller=null)
Class ilPdfGeneratorConstantsTest.
This class provides processing control methods.
Just a wrapper class to create Unit Test for other classes.
Component logger with individual log levels by component id.
downloadPdf(int $userId, int $objectId)