19 declare(strict_types=1);
49 $this->
setRowTemplate(
'tpl.il_test_verification_row.html',
'Modules/Test');
57 $userId = $this->
user->getId();
59 $certificateArray = $this->userCertificateRepository->fetchActiveCertificatesByTypeForPresentation(
65 foreach ($certificateArray as $certificate) {
67 'id' => $certificate->getUserCertificate()->getObjId(),
68 'title' => $certificate->getObjectTitle(),
76 protected function fillRow(array $a_set): void
78 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
79 $this->tpl->setVariable(
81 ($a_set[
'passed']) ? $this->
lng->txt(
'yes') : $this->
lng->txt(
'no')
84 if ($a_set[
'passed']) {
85 $this->
ctrl->setParameter($this->parent_obj,
'tst_id', $a_set[
'id']);
86 $action = $this->
ctrl->getLinkTarget($this->parent_obj,
'save');
87 $this->tpl->setVariable(
'URL_SELECT', $action);
88 $this->tpl->setVariable(
'TXT_SELECT', $this->
lng->txt(
'select'));
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct(ilObjTestVerificationGUI $parent_obj, string $parent_cmd, private ilDBInterface $db, private ilObjUser $user, private ilLogger $logger)
setDescription(string $a_val)
ilUserCertificateRepository $userCertificateRepository
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
GUI class for test verification.
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)
List all completed tests for current user.
ilUserCertificateRepository $user_certificate_repository