ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
setData(array $a_data)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
global $DIC
Definition: feed.php:28
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)
addMultiCommand(string $a_cmd, string $a_text)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...