ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilPCTabsTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("Services/Table/classes/class.ilTable2GUI.php");
5 
15 {
16 
17  function __construct($a_parent_obj, $a_parent_cmd,
18  $a_tabs)
19  {
20  global $ilCtrl, $lng;
21 
22  parent::__construct($a_parent_obj, $a_parent_cmd);
23 
24  $this->addColumn("", "", "1");
25  $this->addColumn($lng->txt("cont_position"), "", "1");
26  $this->addColumn($lng->txt("title"), "", "100%");
27  $this->setEnableHeader(true);
28  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
29  $this->setRowTemplate("tpl.tabs_row.html",
30  "Services/COPage");
31 
32  $this->tabs = $a_tabs;
33  $caps = $this->tabs->getCaptions();
34  $this->setData($this->tabs->getCaptions());
35  $this->setLimit(0);
36 
37  $this->addMultiCommand("confirmTabsDeletion", $lng->txt("delete"));
38  $this->addCommandButton("saveTabs", $lng->txt("save"));
39 
40  $this->setTitle($lng->txt("cont_tabs"));
41  }
42 
47  protected function fillRow($a_set)
48  {
49  global $lng, $ilCtrl;
50 
51  $this->pos += 10;
52  $this->tpl->setVariable("POS", ilUtil::prepareFormOutput($this->pos));
53  $this->tpl->setVariable("TID", $a_set["hier_id"].":".$a_set["pc_id"]);
54  $this->tpl->setVariable("VAL_CAPTION", ilUtil::prepareFormOutput($a_set["caption"]));
55  }
56 
57 }
58 ?>
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
TableGUI class for tabs.
__construct($a_parent_obj, $a_parent_cmd, $a_tabs)
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Standard Version of Fill Row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:17
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setLimit($a_limit=0, $a_default_limit=0)