19declare(strict_types=1);
34 string $a_parent_cmd =
'',
39 $ilCtrl =
$DIC->ctrl();
40 $database =
$DIC->database();
41 $logger =
$DIC->logger()->root();
57 $this->
setRowTemplate(
'tpl.sahs_verification_row.html',
'components/ILIAS/ScormAicc');
58 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
67 $ilUser =
$DIC->user();
69 $userId = $ilUser->getId();
71 $certificateArray = $this->userCertificateRepository->fetchActiveCertificatesByTypeForPresentation(
77 foreach ($certificateArray as $certificate) {
78 $user_cert = $certificate->getUserCertificate();
79 if ($user_cert !==
null) {
81 'id' => $user_cert->getObjId(),
82 'title' => $certificate->getObjectTitle(),
94 protected function fillRow(array $a_set): void
97 $ilCtrl =
$DIC->ctrl();
99 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
100 $this->tpl->setVariable(
102 ($a_set[
'passed']) ? $this->
lng->txt(
'yes') : $this->lng->txt(
'no')
105 if ($a_set[
'passed']) {
106 $ilCtrl->setParameter($this->parent_obj,
'lm_id', $a_set[
'id']);
107 $action = $ilCtrl->getLinkTarget($this->parent_obj,
'save');
108 $this->tpl->setVariable(
'URL_SELECT', $action);
109 $this->tpl->setVariable(
'TXT_SELECT', $this->
lng->txt(
'select'));
GUI class for scorm verification.
List all completed learning modules for current user.
ilUserCertificateRepository $userCertificateRepository
__construct(ilObjSCORMVerificationGUI $a_parent_obj, string $a_parent_cmd='', ?ilUserCertificateRepository $userCertificateRepository=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setDescription(string $a_val)
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc