3 declare(strict_types=1);
38 $this->
user = $DIC->user();
39 $database = $DIC->database();
40 $logger = $DIC->logger()->root();
41 $ilCtrl = $DIC->ctrl();
43 if (null === $userCertificateRepository) {
57 $this->
setRowTemplate(
'tpl.exc_verification_row.html',
'Modules/Exercise');
58 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
69 $certificateArray = $this->userCertificateRepository
70 ->fetchActiveCertificatesByTypeForPresentation($userId,
'exc');
74 foreach ($certificateArray as $certificate) {
76 'id' => $certificate->getUserCertificate()->getObjId(),
77 'title' => $certificate->getObjectTitle(),
85 protected function fillRow(array $a_set): void
89 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
90 $this->tpl->setVariable(
92 ($a_set[
'passed']) ? $this->
lng->txt(
'yes') : $this->
lng->txt(
'no')
95 if ($a_set[
'passed']) {
96 $ilCtrl->
setParameter($this->parent_obj,
'exc_id', $a_set[
'id']);
97 $action = $ilCtrl->getLinkTarget($this->parent_obj,
'save');
98 $this->tpl->setVariable(
'URL_SELECT', $action);
99 $this->tpl->setVariable(
'TXT_SELECT', $this->
lng->txt(
'select'));
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct(ilObjExerciseVerificationGUI $a_parent_obj, string $a_parent_cmd, ?ilUserCertificateRepository $userCertificateRepository=null)
setDescription(string $a_val)
ilUserCertificateRepository $userCertificateRepository
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...
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)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)