ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPCTabsTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected ilPCTabs $tabs;
27 protected int $pos = 0;
28
29 public function __construct(
30 object $a_parent_obj,
31 string $a_parent_cmd,
32 ilPCTabs $a_tabs
33 ) {
34 global $DIC;
35
36 $this->ctrl = $DIC->ctrl();
37 $this->lng = $DIC->language();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
40
41 parent::__construct($a_parent_obj, $a_parent_cmd);
42
43 $this->addColumn("", "", "1");
44 $this->addColumn($lng->txt("cont_position"), "", "1");
45 $this->addColumn($lng->txt("title"), "", "100%");
46 $this->setEnableHeader(true);
47 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
48 $this->setRowTemplate(
49 "tpl.tabs_row.html",
50 "components/ILIAS/COPage"
51 );
52
53 $this->tabs = $a_tabs;
54 $this->setData($this->tabs->getCaptions());
55 $this->setLimit(0);
56
57 $this->addMultiCommand("confirmTabsDeletion", $lng->txt("delete"));
58 $this->addCommandButton("saveTabs", $lng->txt("save"));
59
60 $this->setTitle($lng->txt("cont_tabs"));
61 }
62
63 protected function fillRow(array $a_set): void
64 {
65 $this->pos += 10;
66 $this->tpl->setVariable("POS", ilLegacyFormElementsUtil::prepareFormOutput($this->pos));
67 $this->tpl->setVariable("TID", $a_set["hier_id"] . ":" . $a_set["pc_id"]);
68 $this->tpl->setVariable("VAL_CAPTION", ilLegacyFormElementsUtil::prepareFormOutput($a_set["caption"]));
69 }
70}
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static prepareFormOutput($a_str, bool $a_strip=false)
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, ilPCTabs $a_tabs)
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...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
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)
setEnableHeader(bool $a_enableheader)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
ilLanguage $lng
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26