ILIAS  release_8 Revision v8.24
class.ilGlossaryForeignTermTableGUI.php
Go to the documentation of this file.
1<?php
2
24{
26
27 public function __construct(
28 object $a_parent_obj,
29 string $a_parent_cmd,
30 ilObjGlossary $a_glossary
31 ) {
32 global $DIC;
33
34 $this->lng = $DIC->language();
35 $this->ctrl = $DIC->ctrl();
36 $this->glossary = $a_glossary;
37
38 parent::__construct($a_parent_obj, $a_parent_cmd);
39 $terms = $this->glossary->getTermList();
40
41 $this->setData($terms);
42 $this->setTitle($this->glossary->getTitle() . ": " . $this->lng->txt("glo_select_terms"));
43
44 $this->addColumn("", "", "1");
45 $this->addColumn($this->lng->txt("glo_term"));
46
47 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
48 $this->setRowTemplate("tpl.glo_foreign_term_row.html", "Modules/Glossary");
49
50 $this->addMultiCommand("copyTerms", $this->lng->txt("glo_copy_terms"));
51 $this->addMultiCommand("referenceTerms", $this->lng->txt("glo_reference_terms"));
52 }
53
54 protected function fillRow(array $a_set): void
55 {
56 $this->tpl->setVariable("TERM", $a_set["term"]);
57 $this->tpl->setVariable("TERM_ID", $a_set["id"]);
58 }
59}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjGlossary $a_glossary)
fillRow(array $a_set)
Standard Version of Fill Row.
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...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addMultiCommand(string $a_cmd, string $a_text)
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.
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc