ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_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
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?>
$_GET["client_id"]
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static getSystemStyleCategoryAssignments($a_skin_id, $a_style_id)
Get all system style category assignments.
TableGUI class for system style to category assignments.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40