ILIAS  Release_5_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 
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 ?>