19 declare(strict_types=1);
35 if ($this->activeValidator->validate()) {
36 $objectIdsWithUserCertificate = $this->userCertificateRepository->fetchUserIdsWithCertificateForObject($objectId);
37 self::$certificates[$objectId] = $objectIdsWithUserCertificate;
43 if (!array_key_exists($objId, self::$certificates)) {
47 return in_array($userId, self::$certificates[$objId],
true);
isPreloaded(int $objId, int $userId)
preLoadDownloadableCertificates(int $objectId)
__construct(private readonly ilUserCertificateRepository $userCertificateRepository, private readonly ilCertificateActiveValidator $activeValidator)
static array $certificates