◆ __construct()
◆ isPreloaded()
ilCertificateUserForObjectPreloader::isPreloaded |
( |
int |
$objId, |
|
|
int |
$userId |
|
) |
| |
- Parameters
-
- Returns
- bool
Definition at line 51 of file class.ilCertificateUserForObjectPreloader.php.
52 {
53 if (
false === array_key_exists(
$objId, self::$certificates)) {
54 return false;
55 }
56
57 if (
true === in_array($userId, self::$certificates[
$objId])) {
58 return true;
59 }
60
61 return false;
62 }
References $objId.
◆ preLoadDownloadableCertificates()
ilCertificateUserForObjectPreloader::preLoadDownloadableCertificates |
( |
int |
$objectId | ) |
|
- Parameters
-
int | $objectId | |
array | $userIds | |
Definition at line 38 of file class.ilCertificateUserForObjectPreloader.php.
39 {
40 if (true === $this->activeValidator->validate()) {
41 $objectIdsWithUserCertificate = $this->userCertificateRepository->fetchUserIdsWithCertificateForObject($objectId);
42 self::$certificates[$objectId] = $objectIdsWithUserCertificate;
43 }
44 }
◆ $activeValidator
ilCertificateUserForObjectPreloader::$activeValidator |
|
private |
◆ $certificates
ilCertificateUserForObjectPreloader::$certificates = array() |
|
staticprivate |
◆ $userCertificateRepository
ilCertificateUserForObjectPreloader::$userCertificateRepository |
|
private |
The documentation for this class was generated from the following file: