33 $this->as_dropdown = $a_val;
34 $this->dd_pullright = $a_pullright;
56 "add_class" => $a_add_class);
64 $this->items[] =
array(
"type" =>
"sep");
72 $this->items[] =
array(
"type" =>
"next_col");
73 $this->multi_column =
true;
83 $a_id =
"", $a_ttip =
"", $a_tt_my =
"right center", $a_tt_at =
"left center",
84 $a_tt_use_htmlspecialchars =
true)
87 "href" => $a_href,
"target" => $a_target,
"onclick" => $a_onclick,
88 "add_class" => $a_add_class,
"id" => $a_id,
"ttip" => $a_ttip,
89 "tt_my" => $a_tt_my,
"tt_at" => $a_tt_at,
90 "tt_use_htmlspecialchars" => $a_tt_use_htmlspecialchars);
104 $tpl =
new ilTemplate(
"tpl.grouped_list.html",
true,
true,
"Services/UIComponent/GroupedList");
106 foreach ($this->items as $i)
111 $tpl->touchBlock(
"sep");
112 $tpl->touchBlock(
"item");
116 $tpl->touchBlock(
"next_col");
117 $tpl->touchBlock(
"item");
121 $tpl->setCurrentBlock(
"group_head");
122 if ($i[
"add_class"] !=
"")
124 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
126 $tpl->setVariable(
"GROUP_HEAD", $i[
"content"]);
127 $tpl->parseCurrentBlock();
128 $tpl->touchBlock(
"item");
132 if ($i[
"href"] !=
"")
134 $tpl->setCurrentBlock(
"linked_entry");
135 if ($i[
"add_class"] !=
"")
137 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
140 $tpl->setVariable(
"TXT_ENTRY", $i[
"content"]);
141 if ($i[
"target"] !=
"")
143 $tpl->setVariable(
"TARGET",
'target="'.$i[
"target"].
'"');
147 $tpl->setVariable(
"TARGET",
'target="_top"');
149 if ($i[
"onclick"] !=
"")
151 $tpl->setVariable(
"ONCLICK",
'onclick="'.$i[
"onclick"].
'"');
155 $tpl->setVariable(
"ID",
'id="'.$i[
"id"].
'"');
157 $tpl->parseCurrentBlock();
158 $tpl->touchBlock(
"item");
159 if ($i[
"ttip"] !=
"" && $i[
"id"] !=
"")
161 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
162 if ($ilCtrl->isAsynch())
164 $tt_calls.=
" ".ilTooltipGUI::getTooltip($i[
"id"], $i[
"ttip"],
165 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
170 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
177 $tpl->setCurrentBlock(
"unlinked_entry");
178 if ($i[
"add_class"] !=
"")
180 $tpl->setVariable(
"ADD_CLASS2", $i[
"add_class"]);
182 $tpl->setVariable(
"TXT_ENTRY2", $i[
"content"]);
183 $tpl->parseCurrentBlock();
189 if ($this->multi_column)
191 $tpl->touchBlock(
"multi_start");
192 $tpl->touchBlock(
"multi_end");
197 $tpl->setCurrentBlock(
"script");
198 $tpl->setVariable(
"TT_CALLS", $tt_calls);
199 $tpl->parseCurrentBlock();
204 if ($this->dd_pullright)
206 $tpl->setVariable(
"LIST_CLASS",
"dropdown-menu pull-right");
210 $tpl->setVariable(
"LIST_CLASS",
"dropdown-menu");
212 $tpl->setVariable(
"LIST_ROLE",
"menu");
216 $tpl->setVariable(
"LIST_CLASS",
"");
217 $tpl->setVariable(
"LIST_ROLE",
"");
setAsDropDown($a_val, $a_pullright=false)
Set as drop down.
getAsDropDown()
Get as drop down.
addSeparator()
Add separator.
addEntry($a_content, $a_href="", $a_target="", $a_onclick="", $a_add_class="", $a_id="", $a_ttip="", $a_tt_my="right center", $a_tt_at="left center", $a_tt_use_htmlspecialchars=true)
Add entry.
special template class to simplify handling of ITX/PEAR
addGroupHeader($a_content, $a_add_class="")
Add group header.
Create styles array
The data for the language used.
static secureUrl($url)
Prepare secure href attribute.
nextColumn()
Add separator.
__construct()
Constructor.