19declare(strict_types=1);
49 $this->
setRowTemplate(
"tpl.lti_verification_row.html",
"components/ILIAS/LTIConsumer");
50 $this->
setFormAction($DIC->ctrl()->getFormAction($a_parent_obj, $a_parent_cmd));
64 $DIC->logger()->root()
67 $certificateArray = $userCertificateRepository->fetchActiveCertificatesByTypeForPresentation(
68 $DIC->user()->getId(),
74 foreach ($certificateArray as $certificate) {
76 'id' => $certificate->getUserCertificate()->getObjId(),
77 'title' => $certificate->getObjectTitle(),
88 protected function fillRow(array $a_set): void
92 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
93 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->
lng->txt(
"yes") :
94 $this->lng->txt(
"no"));
96 if ($a_set[
"passed"]) {
97 $DIC->ctrl()->setParameter($this->parent_obj,
"lti_id", $a_set[
"id"]);
98 $action =
$DIC->ctrl()->getLinkTarget($this->parent_obj,
"save");
99 $this->tpl->setVariable(
"URL_SELECT", $action);
100 $this->tpl->setVariable(
"TXT_SELECT", $this->
lng->txt(
"select"));
__construct(?ilObjLTIConsumerVerificationGUI $a_parent_obj, ?string $a_parent_cmd="")
Constructor.
fillRow(array $a_set)
Fill template row.
getItems()
Get all completed tests.
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