ILIAS  release_8 Revision v8.24
class.ilSurveySavePhraseTableGUI.php
Go to the documentation of this file.
1<?php
2
23{
24 public function __construct(
25 object $a_parent_obj,
26 string $a_parent_cmd
27 ) {
28 global $DIC;
29
30 parent::__construct($a_parent_obj, $a_parent_cmd);
31
32 $lng = $DIC->language();
33 $ilCtrl = $DIC->ctrl();
34
35 $this->lng = $lng;
36 $this->ctrl = $ilCtrl;
37
38 $this->setFormName('phrases');
39 $this->setStyle('table', 'fullwidth');
40
41 $this->addColumn($this->lng->txt("answer"), '', '');
42 $this->addColumn($this->lng->txt("use_other_answer"), '', '');
43 $this->addColumn($this->lng->txt("scale"), '', '');
44
45 $this->setRowTemplate("tpl.il_svy_qpl_phrase_save_row.html", "Modules/SurveyQuestionPool");
46
47 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
48 $this->disable('sort');
49 $this->disable('select_all');
50 $this->enable('header');
51 }
52
53 protected function fillRow(array $a_set): void
54 {
55 $this->tpl->setVariable("ANSWER", $a_set["answer"]);
56 $this->tpl->setVariable("OPEN_ANSWER", ($a_set["other"]) ? $this->lng->txt('yes') : $this->lng->txt('no'));
57 $this->tpl->setVariable("SCALE", $a_set["scale"]);
58 }
59}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(object $a_parent_obj, string $a_parent_cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormName(string $a_name="")
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.
ilLanguage $lng
enable(string $a_module_name)
setStyle(string $a_element, string $a_style)
disable(string $a_module_name)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc