3 declare(strict_types=1);
34 string $a_parent_cmd =
'',
39 $ilCtrl = $DIC->ctrl();
40 $database = $DIC->database();
41 $logger = $DIC->logger()->root();
43 if (null === $userCertificateRepository) {
57 $this->
setRowTemplate(
'tpl.sahs_verification_row.html',
'Modules/ScormAicc');
58 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
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'));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormAction(string $a_form_action, bool $a_multipart=false)
ilUserCertificateRepository $userCertificateRepository
__construct(ilObjSCORMVerificationGUI $a_parent_obj, string $a_parent_cmd='', ?ilUserCertificateRepository $userCertificateRepository=null)
setDescription(string $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...