ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilPasteStyleCharacteristicTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Table/classes/class.ilTable2GUI.php");
5
15{
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 $this->setTitle($lng->txt("sty_paste_characteristics"));
26 $this->setLimit(9999);
27 $st_c = explode(":::", $_SESSION["sty_copy"]);
28 $this->from_style_id = $st_c[0];
29 $this->from_style_type = $st_c[1];
30 $this->setData(explode("::",$st_c[2]));
31 $this->addColumn($this->lng->txt("name"));
32 $this->addColumn($this->lng->txt("type"));
33 $this->addColumn($this->lng->txt("sty_if_style_class_already_exists"));
34
35 $this->setEnableHeader(true);
36 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
37 $this->setRowTemplate("tpl.paste_style_row.html", "Services/Style");
38 $this->disable("footer");
39 $this->setEnableTitle(true);
40
41 //$this->addMultiCommand("", $lng->txt(""));
42 $this->addCommandButton("pasteCharacteristics", $lng->txt("paste"));
43 $this->addCommandButton("edit", $lng->txt("cancel"));
44 $this->addHiddenInput("from_style_id", $this->from_style_id);
45 }
46
50 protected function fillRow($a_set)
51 {
52 global $lng;
53
54 $char = explode(".", $a_set);
55 $this->tpl->setVariable("CHAR", $a_set);
56 $this->tpl->setVariable("SEL_OVERWRITE", 'checked="checked"');
57 $this->tpl->setVariable("VAL_TYPE", $lng->txt("sty_type_".$char[0]));
58 $this->tpl->setVariable("VAL_TITLE", $char[2]);
59 $this->tpl->setVariable("TXT_OVERWRITE", $lng->txt("sty_overwrite"));
60 $this->tpl->setVariable("TXT_IGNORE", $lng->txt("sty_keep_existing"));
61
62 }
63
64}
65?>
$_SESSION["AccountId"]
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
addHiddenInput($a_name, $a_value)
Add Hidden Input field.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40