1<?
php declare(strict_types=1);
4use Psr\Http\Message\ServerRequestInterface;
34 ServerRequestInterface
$request =
null,
61 $this->
language->loadLanguageModule(
'cert');
70 $cmd = $this->controller->getCmd();
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());
An exception for terminatinating execution or to throw for unit testing.
Just a wrapper class to create Unit Test for other classes.
This class provides processing control methods.
Component logger with individual log levels by component id.
__construct(ilLanguage $language=null, ServerRequestInterface $request=null, ilLogger $certificateLogger=null, ilCtrl $controller=null)
Class ilPdfGeneratorConstantsTest.