70 public function createPDF(
int $userId,
int $objectId) : string
72 $pdfScalar = $this->pdfGenerator->generateCurrentActiveCertificate($userId, $objectId);
83 public function downloadPdf(
int $userId,
int $objectId) : string
86 $pdfScalar = $this->
createPDF($userId, $objectId);
88 $fileName = $this->pdfGenerator->generateFileName($userId, $objectId);
90 $this->ilUtilHelper->deliverData(
96 $this->errorHandler->raiseError($this->translatedErrorText, $this->errorHandler->MESSAGE);
Class ilPdfGeneratorConstantsTest.
__construct(ilLogger $logger, ilPdfGenerator $pdfGenerator, ilCertificateUtilHelper $ilUtilHelper=null, string $translatedErrorText='', ilErrorHandling $errorHandler=null)
Just a wrapper class to create Unit Test for other classes.
createPDF(int $userId, int $objectId)
Component logger with individual log levels by component id.
downloadPdf(int $userId, int $objectId)