5 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
21 function __construct($a_parent_obj, $a_parent_cmd, $a_chars, $a_super_type, $a_style)
26 $this->media_object = $a_media_object;
27 $this->super_type = $a_super_type;
28 $this->style = $a_style;
30 $this->types = $all_super_types[$this->super_type];
33 $this->
setTitle($lng->txt(
"sty_".$a_super_type.
"_char"));
37 $this->expandable =
false;
38 $this->hideable =
false;
39 foreach ($this->types as
$t)
43 $this->expandable =
true;
47 $this->hideable =
true;
55 $this->
addColumn($this->lng->txt(
"sty_name"),
"",
"1");
56 $this->
addColumn($this->lng->txt(
"sty_type"),
"",
"");
57 $this->
addColumn($this->lng->txt(
"sty_example"),
"",
"");
60 $this->
addColumn($this->lng->txt(
"sty_hide"),
"",
"");
62 $this->
addColumn($this->lng->txt(
"sty_commands"),
"",
"1");
71 $this->
addCommandButton(
"saveHideStatus", $lng->txt(
"sty_save_hide_status"));
77 if ($this->expandable)
79 $this->
addMultiCommand(
"deleteCharacteristicConfirmation", $lng->txt(
"delete"));
95 $types = $stypes[$this->super_type];
97 if (!in_array($a_set[
"type"], $types))
113 $this->tpl->setCurrentBlock(
"checkbox");
114 $this->tpl->setVariable(
"CHAR", $a_set[
"type"].
".".
116 ".".$a_set[
"class"]);
117 $this->tpl->parseCurrentBlock();
124 (!empty($this->core_styles[$a_set[
"type"].
".".
126 ".".$a_set[
"class"]])))
128 $this->tpl->touchBlock(
"no_hide_checkbox");
132 $this->tpl->setCurrentBlock(
"hide_checkbox");
133 $this->tpl->setVariable(
"CHAR", $a_set[
"type"].
".".
135 ".".$a_set[
"class"]);
136 if ($this->style->getHideStatus($a_set[
"type"], $a_set[
"class"]))
138 $this->tpl->setVariable(
"CHECKED",
"checked='checked'");
140 $this->tpl->parseCurrentBlock();
145 $this->tpl->setVariable(
"EXAMPLE",
149 $this->tpl->setVariable(
"TXT_TAG", $a_set[
"class"]);
150 $this->tpl->setVariable(
"TXT_TYPE", $lng->txt(
"sty_type_".$a_set[
"type"]));
151 $this->tpl->setVariable(
"TXT_EDIT", $this->lng->txt(
"edit"));
152 $ilCtrl->setParameter($this->parent_obj,
"tag", $tag_str);
153 $ilCtrl->setParameter($this->parent_obj,
"style_type", $a_set[
"type"]);
154 $this->tpl->setVariable(
"LINK_EDIT_TAG_STYLE",
155 $ilCtrl->getLinkTarget($this->parent_obj,
"editTagStyle"));