19 declare(strict_types=1);
    59         if (null === $userCertificateRepository) {
    60             $database = 
$dic->database();
    61             $looger = 
$dic->logger()->cert();
    71         if (null === $certificateSettings) {
    72             $certificateSettings = 
new ilSetting(
"certificate");
    76         if (null === $uiFactory) {
    77             $uiFactory = 
$dic->ui()->factory();
    81         if (null === $uiRenderer) {
    82             $uiRenderer = 
$dic->ui()->renderer();
    86         if (null === $utilHelper) {
    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(
   138                 $this->
lng->txt(
'certificate_achievement'),
   145                 $this->utilHelper->getImagePath(
"standard/icon_cert.svg"),
   146                 $certificate->getUserCertificate()->getAcquiredTimestamp(),
   156         return $this->
lng->txt(
'certificates');
 
loadLanguageModule(string $a_module)
Load language module. 
 
Customizing of pimple-DIC for ILIAS. 
 
ilLearningHistoryFactory $factory
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
readonly ilSetting $certificateSettings
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This is how the factory for UI elements looks. 
 
readonly ilUserCertificateRepository $userCertificateRepository
 
getEmphasizedTitle(string $title)
 
getEntries(int $ts_start, int $ts_end)
Get entries. 
 
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...
 
readonly ilCtrlInterface $ctrl
 
__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)
 
__construct(Container $dic, ilPlugin $plugin)
 
readonly ilCertificateUtilHelper $utilHelper