19declare(strict_types=0);
35 string $a_parent_cmd =
'',
41 $database =
$DIC->database();
42 $logger =
$DIC->logger()->root();
58 $this->
setRowTemplate(
'tpl.crs_verification_row.html',
'components/ILIAS/Course');
66 $certificateArray = $this->userCertificateRepository->fetchActiveCertificatesByTypeForPresentation(
67 $this->dic->user()->getId(),
72 foreach ($certificateArray as $certificate) {
74 'id' => $certificate->getUserCertificate()->getObjId(),
75 'title' => $certificate->getObjectTitle(),
83 protected function fillRow(array $a_set): void
87 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
88 $this->tpl->setVariable(
90 ($a_set[
'passed']) ? $this->
lng->txt(
'yes') : $this->lng->txt(
'no')
93 if ($a_set[
'passed']) {
94 $this->
ctrl->setParameter($this->parent_obj,
'crs_id', $a_set[
'id']);
95 $action = $this->
ctrl->getLinkTarget($this->parent_obj,
'save');
96 $this->tpl->setVariable(
'URL_SELECT', $action);
97 $this->tpl->setVariable(
'TXT_SELECT', $this->
lng->txt(
'select'));
Customizing of pimple-DIC for ILIAS.
List all completed course for current user.
ilUserCertificateRepository $userCertificateRepository
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(ilObjCourseVerificationGUI $a_parent_obj, string $a_parent_cmd='', ?ilUserCertificateRepository $userCertificateRepository=null)
GUI class for course verification.
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