19declare(strict_types=1);
60 $database =
$dic->database();
61 $looger =
$dic->logger()->cert();
71 if (
null === $certificateSettings) {
94 return (
bool) $this->certificateSettings->get(
'active',
'0');
101 public function getEntries(
int $ts_start,
int $ts_end): array
105 $certificates = $this->userCertificateRepository->fetchActiveCertificatesInIntervalForPresentation(
111 foreach ($certificates as $certificate) {
112 $objectId = $certificate->getUserCertificate()->getObjId();
114 $this->
ctrl->setParameterByClass(
115 ilUserCertificateGUI::class,
117 $certificate->getUserCertificate()->getId()
119 $href = $this->
ctrl->getLinkTargetByClass(
121 ilDashboardGUI::class,
122 ilAchievementsGUI::class,
123 ilUserCertificateGUI::class
127 $this->
ctrl->clearParametersByClass(ilUserCertificateGUI::class);
129 $prefixTextWithLink = sprintf(
130 $this->
lng->txt(
'certificate_achievement_sub_obj'),
131 $this->uiRenderer->render($this->uiFactory->link()->standard(
132 $this->getEmphasizedTitle($certificate->getObjectTitle()),
138 $this->
lng->txt(
'certificate_achievement'),
145 $this->utilHelper->getImagePath(
"standard/icon_cert.svg"),
146 $certificate->getUserCertificate()->getAcquiredTimestamp(),
156 return $this->
lng->txt(
'certificates');
Customizing of pimple-DIC for ILIAS.
Builds a Color from either hex- or rgb values.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLearningHistoryFactory $factory
__construct(int $user_id, ilLearningHistoryFactory $factory, ilLanguage $lng, ?ilTemplate $template=null, ?Container $dic=null, ?ilUserCertificateRepository $userCertificateRepository=null, ?ilCtrlInterface $ctrl=null, ?ilSetting $certificateSettings=null, ?Factory $uiFactory=null, ?Renderer $uiRenderer=null, ?ilCertificateUtilHelper $utilHelper=null)
readonly ilCertificateUtilHelper $utilHelper
readonly ilCtrlInterface $ctrl
getEntries(int $ts_start, int $ts_end)
Get entries.
readonly ilSetting $certificateSettings
readonly ilUserCertificateRepository $userCertificateRepository
Just a wrapper class to create Unit Test for other classes.
loadLanguageModule(string $a_module)
Load language module.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
special template class to simplify handling of ITX/PEAR
This is how the factory for UI elements looks.
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc