41 return $isUserCreatedAfterFeatureIntroduction;
49 $certificatesGloballyEnabled = (bool) $this->certificateSettings->get(
'active',
false);
51 return $certificatesGloballyEnabled;
60 $migrationFinished = $user->
getPref(
'cert_migr_finished') == 1;
62 return $migrationFinished;
71 $createdBeforeFeatureIntroduction =
false;
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;
isUserCreatedAfterFeatureIntroduction(\ilObjUser $user)
getCreateDate()
get create date public
areCertificatesGloballyEnabled()
getPref($a_keyword)
get a user preference
Class ilCertificateMigration.
__construct(\ilSetting $certificateSettings)
isMigrationAvailable(\ilObjUser $user, \ilCertificateMigration $migrationHelper)
isMigrationFinishedForUser(\ilObjUser $user)