19declare(strict_types=1);
55 public function createPDF(
int $userId,
int $objectId): string
57 return $this->pdfGenerator->generateCurrentActiveCertificate($userId, $objectId);
60 public function downloadPdf(
int $userId,
int $objectId): string
63 $pdfScalar = $this->
createPDF($userId, $objectId);
65 $fileName = $this->pdfGenerator->generateFileName($userId, $objectId);
67 $this->ilUtilHelper->deliverData(
73 $this->errorHandler->raiseError($this->translatedErrorText, $this->errorHandler->MESSAGE);
downloadPdf(int $userId, int $objectId)
__construct(ilLogger $logger, ilPdfGenerator $pdfGenerator, ?ilCertificateUtilHelper $ilUtilHelper=null, string $translatedErrorText='', ?ilErrorHandling $errorHandler=null)
string $translatedErrorText
ilCertificateUtilHelper $ilUtilHelper
createPDF(int $userId, int $objectId)
ilPdfGenerator $pdfGenerator
ilErrorHandling $errorHandler
Just a wrapper class to create Unit Test for other classes.
Error Handling & global info handling uses PEAR error class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Component logger with individual log levels by component id.
Class ilPdfGeneratorConstantsTest.