Grouped list GUI class.
More...
|
| __construct () |
| Constructor. More...
|
|
| setAsDropDown ($a_val, $a_pullright=false) |
| Set as drop down. More...
|
|
| getAsDropDown () |
| Get as drop down. More...
|
|
| addGroupHeader ($a_content, $a_add_class="") |
| Add group header. More...
|
|
| addSeparator () |
| Add separator. More...
|
|
| nextColumn () |
| Add separator. More...
|
|
| 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. More...
|
|
| getHTML () |
| Get HTML. More...
|
|
Grouped list GUI class.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilGroupedListGUI.php.
◆ __construct()
ilGroupedListGUI::__construct |
( |
| ) |
|
◆ addEntry()
ilGroupedListGUI::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.
- Parameters
-
Definition at line 82 of file class.ilGroupedListGUI.php.
References $a_content, and array.
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);
Create styles array
The data for the language used.
◆ addGroupHeader()
ilGroupedListGUI::addGroupHeader |
( |
|
$a_content, |
|
|
|
$a_add_class = "" |
|
) |
| |
◆ addSeparator()
ilGroupedListGUI::addSeparator |
( |
| ) |
|
◆ getAsDropDown()
ilGroupedListGUI::getAsDropDown |
( |
| ) |
|
◆ getHTML()
ilGroupedListGUI::getHTML |
( |
| ) |
|
Get HTML.
- Parameters
-
Definition at line 100 of file class.ilGroupedListGUI.php.
References $ilCtrl, $tpl, ilTooltipGUI\addTooltip(), getAsDropDown(), and ilUtil\secureUrl().
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",
"");
getAsDropDown()
Get as drop down.
special template class to simplify handling of ITX/PEAR
static secureUrl($url)
Prepare secure href attribute.
◆ nextColumn()
ilGroupedListGUI::nextColumn |
( |
| ) |
|
Add separator.
Definition at line 70 of file class.ilGroupedListGUI.php.
References array.
72 $this->items[] =
array(
"type" =>
"next_col");
73 $this->multi_column =
true;
Create styles array
The data for the language used.
◆ setAsDropDown()
ilGroupedListGUI::setAsDropDown |
( |
|
$a_val, |
|
|
|
$a_pullright = false |
|
) |
| |
Set as drop down.
- Parameters
-
bool | $a_val | as drop down menu |
Definition at line 31 of file class.ilGroupedListGUI.php.
33 $this->as_dropdown = $a_val;
34 $this->dd_pullright = $a_pullright;
◆ $as_dropdown
ilGroupedListGUI::$as_dropdown = false |
|
protected |
◆ $dd_pullright
ilGroupedListGUI::$dd_pullright = false |
|
protected |
◆ $items
ilGroupedListGUI::$items = array() |
|
protected |
◆ $multi_column
ilGroupedListGUI::$multi_column = false |
|
protected |
The documentation for this class was generated from the following file: