19 declare(strict_types=1);
36 if (
null === $userCertificateAccessValidator) {
41 if (
null === $activeValidator) {
49 if (!$this->activeValidator->validate()) {
53 return $this->userCertificateAccessValidator->validate($userId, $objId);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(?ilCertificateUserCertificateAccessValidator $userCertificateAccessValidator=null, ?ilCertificateActiveValidator $activeValidator=null)
Validates if an active certificate is stored in the database and can be downloaded by the user...
readonly ilCertificateUserCertificateAccessValidator $userCertificateAccessValidator
readonly ilCertificateActiveValidator $activeValidator
isCertificateDownloadable(int $userId, int $objId)