Grouped list GUI class.
More...
|
| | __construct () |
| | Constructor. 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 60 of file class.ilGroupedListGUI.php.
64 $this->items[] = array(
"type" =>
"entry",
"content" => $a_content,
65 "href" => $a_href,
"target" => $a_target,
"onclick" => $a_onclick,
66 "add_class" => $a_add_class,
"id" => $a_id,
"ttip" => $a_ttip,
67 "tt_my" => $a_tt_my,
"tt_at" => $a_tt_at,
68 "tt_use_htmlspecialchars" => $a_tt_use_htmlspecialchars);
◆ addGroupHeader()
| ilGroupedListGUI::addGroupHeader |
( |
|
$a_content, |
|
|
|
$a_add_class = "" |
|
) |
| |
Add group header.
- Parameters
-
Definition at line 31 of file class.ilGroupedListGUI.php.
33 $this->items[] = array(
"type" =>
"group_head",
"content" => $a_content,
34 "add_class" => $a_add_class);
◆ addSeparator()
| ilGroupedListGUI::addSeparator |
( |
| ) |
|
◆ getHTML()
| ilGroupedListGUI::getHTML |
( |
| ) |
|
Get HTML.
- Parameters
-
Definition at line 78 of file class.ilGroupedListGUI.php.
References $ilCtrl, $tpl, and ilTooltipGUI\addTooltip().
82 $tpl =
new ilTemplate(
"tpl.grouped_list.html",
true,
true,
"Services/UIComponent/GroupedList");
84 foreach ($this->items as $i)
89 $tpl->touchBlock(
"sep");
90 $tpl->touchBlock(
"item");
94 $tpl->touchBlock(
"next_col");
95 $tpl->touchBlock(
"item");
99 $tpl->setCurrentBlock(
"group_head");
100 if ($i[
"add_class"] !=
"")
102 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
104 $tpl->setVariable(
"GROUP_HEAD", $i[
"content"]);
105 $tpl->parseCurrentBlock();
106 $tpl->touchBlock(
"item");
110 if ($i[
"href"] !=
"")
112 $tpl->setCurrentBlock(
"linked_entry");
113 if ($i[
"add_class"] !=
"")
115 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
117 $tpl->setVariable(
"HREF", $i[
"href"]);
118 $tpl->setVariable(
"TXT_ENTRY", $i[
"content"]);
119 if ($i[
"target"] !=
"")
121 $tpl->setVariable(
"TARGET",
'target="'.$i[
"target"].
'"');
125 $tpl->setVariable(
"TARGET",
'target="_top"');
127 if ($i[
"onclick"] !=
"")
129 $tpl->setVariable(
"ONCLICK",
'onclick="'.$i[
"onclick"].
'"');
133 $tpl->setVariable(
"ID",
'id="'.$i[
"id"].
'"');
135 $tpl->parseCurrentBlock();
136 $tpl->touchBlock(
"item");
137 if ($i[
"ttip"] !=
"" && $i[
"id"] !=
"")
139 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
140 if ($ilCtrl->isAsynch())
142 $tt_calls.=
" ".ilTooltipGUI::getTooltip($i[
"id"], $i[
"ttip"],
143 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
148 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
157 if ($this->multi_column)
159 $tpl->touchBlock(
"multi_start");
160 $tpl->touchBlock(
"multi_end");
165 $tpl->setCurrentBlock(
"script");
166 $tpl->setVariable(
"TT_CALLS", $tt_calls);
167 $tpl->parseCurrentBlock();
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
◆ nextColumn()
| ilGroupedListGUI::nextColumn |
( |
| ) |
|
Add separator.
Definition at line 48 of file class.ilGroupedListGUI.php.
50 $this->items[] = array(
"type" =>
"next_col");
51 $this->multi_column =
true;
◆ $items
| ilGroupedListGUI::$items = array() |
|
private |
◆ $multi_column
| ilGroupedListGUI::$multi_column = false |
|
private |
The documentation for this class was generated from the following file: