ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 ilPCTabsTableGUI($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  $this->addCommandButton("addTab", $lng->txt("cont_add_tab"));
40 
41  $this->setTitle($lng->txt("cont_tabs"));
42  }
43 
48  protected function fillRow($a_set)
49  {
50  global $lng, $ilCtrl;
51 
52  $this->pos += 10;
53  $this->tpl->setVariable("POS", $this->pos);
54  $this->tpl->setVariable("TID", $a_set["hier_id"].":".$a_set["pc_id"]);
55  $this->tpl->setVariable("VAL_CAPTION", $a_set["caption"]);
56  }
57 
58 }
59 ?>