19 declare(strict_types=1);
37 $this->wrapped->save($certificateTemplate);
42 return $this->wrapped->updateActivity($certificateTemplate, $currentlyActive);
47 return $this->wrapped->fetchTemplate($templateId);
52 return $this->wrapped->fetchCertificateTemplatesByObjId($objId);
57 return $this->wrapped->fetchCurrentlyUsedCertificate($objId);
62 return $this->wrapped->fetchCurrentlyActiveCertificate($objId);
67 return $this->wrapped->fetchPreviousCertificate($objId);
72 $this->wrapped->deleteTemplate($templateId, $objectId);
77 return $this->wrapped->activatePreviousCertificate($objId);
81 bool $isGlobalLpEnabled,
84 $cache_key = (
int) $isGlobalLpEnabled .
'_' . (
int) $forRefId;
86 if (!array_key_exists($cache_key, self::$crs_certificates_without_lp)) {
87 self::$crs_certificates_without_lp[$cache_key] =
88 $this->wrapped->fetchActiveCertificateTemplatesForCoursesWithDisabledLearningProgress(
94 return self::$crs_certificates_without_lp[$cache_key];
99 return $this->wrapped->fetchFirstCreatedTemplate($objId);
static array $crs_certificates_without_lp
deleteTemplate(int $templateId, int $objectId)
fetchTemplate(int $templateId)
fetchCurrentlyUsedCertificate(int $objId)
save(ilCertificateTemplate $certificateTemplate)
updateActivity(ilCertificateTemplate $certificateTemplate, bool $currentlyActive)
__construct(private readonly ilCertificateTemplateRepository $wrapped)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
fetchCertificateTemplatesByObjId(int $objId)
activatePreviousCertificate(int $objId)
fetchActiveCertificateTemplatesForCoursesWithDisabledLearningProgress(bool $isGlobalLpEnabled, ?int $forRefId=null)
fetchPreviousCertificate(int $objId)
fetchCurrentlyActiveCertificate(int $objId)
fetchFirstCreatedTemplate(int $objId)