ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSysStyleCatAssignmentTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
20  function __construct($a_parent_obj, $a_parent_cmd)
21  {
22  global $ilCtrl, $lng, $ilAccess, $lng;
23 
24  parent::__construct($a_parent_obj, $a_parent_cmd);
25 
26 
27  $style_arr = explode(":", $_GET["style_id"]);
28  $this->skin_id = $style_arr[0];
29  $this->style_id = $style_arr[1];
30 
31  $this->getStyleCatAssignments();
32  $this->setTitle($lng->txt("sty_cat_assignments").", ".
33  $this->skin_id."/".$this->style_id);
34 
35  $this->addColumn("", "", "1");
36  $this->addColumn($this->lng->txt("sty_substyle"));
37  $this->addColumn($this->lng->txt("obj_cat"));
38 
39  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
40  $this->setRowTemplate("tpl.sty_cat_ass_row.html", "Services/Style");
41 
42  $this->addMultiCommand("deleteSysStyleCatAssignments", $lng->txt("delete"));
43  }
44 
52  {
53  $this->setData(ilStyleDefinition::getSystemStyleCategoryAssignments($this->skin_id, $this->style_id));
54  }
55 
56 
60  protected function fillRow($a_set)
61  {
62  global $lng;
63 
64  $this->tpl->setVariable("REF_ID", $a_set["ref_id"]);
65  $this->tpl->setVariable("SUBSTYLE", $a_set["substyle"]);
66  $this->tpl->setVariable("CATEGORY",
68  }
69 
70 }
71 ?>