ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilGlossaryForeignTermTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 
12 {
16  protected $ctrl;
17 
21  protected $lng;
22 
26  protected $glossary;
27 
35  public function __construct($a_parent_obj, $a_parent_cmd, ilObjGlossary $a_glossary)
36  {
37  global $DIC;
38 
39  $this->lng = $DIC->language();
40  $this->ctrl = $DIC->ctrl();
41  $this->glossary = $a_glossary;
42 
43  parent::__construct($a_parent_obj, $a_parent_cmd);
44  $terms = $this->glossary->getTermList();
45 
46  $this->setData($terms);
47  $this->setTitle($this->glossary->getTitle() . ": " . $this->lng->txt("glo_select_terms"));
48 
49  $this->addColumn("", "", "1");
50  $this->addColumn($this->lng->txt("glo_term"));
51 
52  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
53  $this->setRowTemplate("tpl.glo_foreign_term_row.html", "Modules/Glossary");
54 
55  $this->addMultiCommand("copyTerms", $this->lng->txt("glo_copy_terms"));
56  $this->addMultiCommand("referenceTerms", $this->lng->txt("glo_reference_terms"));
57 
58  //$this->addCommandButton("", $lng->txt(""));
59  }
60 
64  protected function fillRow($a_set)
65  {
66  $this->tpl->setVariable("TERM", $a_set["term"]);
67  $this->tpl->setVariable("TERM_ID", $a_set["id"]);
68  }
69 }
Class ilObjGlossary.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd, ilObjGlossary $a_glossary)
ilGlossaryForeignTermTableGUI constructor.
global $DIC
Definition: goto.php:24
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
TableGUI class for collecting foreign terms.