19declare(strict_types=1);
21use Psr\Http\Message\ServerRequestInterface;
37 ?ServerRequestInterface
$request =
null,
48 if ($request ===
null) {
63 $this->
language->loadLanguageModule(
'cert');
68 $cmd = $this->
ctrl->getCmd();
83 $pdfGenerator =
new ilPdfGenerator($userCertificateRepository, $this->certificateLogger);
85 $userCertificateId = (
int) $this->request->getQueryParams()[
'certificate_id'];
87 $userCertificate = $userCertificateRepository->fetchCertificate($userCertificateId);
90 $this->certificateLogger,
93 $this->
language->txt(
'error_creating_certificate_pdf')
96 $pdfAction->downloadPdf($userCertificate->getUserId(), $userCertificate->getObjId());
Just a wrapper class to create Unit Test for other classes.
Component logger with individual log levels by component id.
ilLogger $certificateLogger
__construct(?ilLanguage $language=null, ?ServerRequestInterface $request=null, ?ilLogger $certificateLogger=null, ?ilCtrlInterface $ctrl=null)
ServerRequestInterface $request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilPdfGeneratorConstantsTest.