◆ __construct()
ilCertificateMigrationValidator::__construct |
( |
\ilSetting |
$certificateSettings | ) |
|
◆ areCertificatesGloballyEnabled()
ilCertificateMigrationValidator::areCertificatesGloballyEnabled |
( |
| ) |
|
|
protected |
◆ isMigrationAvailable()
◆ isMigrationFinishedForUser()
ilCertificateMigrationValidator::isMigrationFinishedForUser |
( |
\ilObjUser |
$user | ) |
|
|
protected |
◆ isUserCreatedAfterFeatureIntroduction()
ilCertificateMigrationValidator::isUserCreatedAfterFeatureIntroduction |
( |
\ilObjUser |
$user | ) |
|
|
protected |
- Parameters
-
- Returns
- bool
Definition at line 69 of file class.ilCertificateMigrationValidator.php.
References ilObject\getCreateDate().
Referenced by isMigrationAvailable().
71 $createdBeforeFeatureIntroduction =
false;
73 $userCreationDate =
$user->getCreateDate();
74 if (null !== $userCreationDate) {
75 $userCreatedTimestamp = strtotime($userCreationDate);
76 $introducedTimestamp = $this->certificateSettings->get(
'persisting_cers_introduced_ts', 0);
78 if ($userCreatedTimestamp < $introducedTimestamp) {
79 $createdBeforeFeatureIntroduction =
true;
83 return $createdBeforeFeatureIntroduction;
◆ $certificateSettings
ilCertificateMigrationValidator::$certificateSettings |
|
private |
The documentation for this class was generated from the following file: