Grouped list GUI class.
More...
Detailed Description
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.
Constructor & Destructor Documentation
ilGroupedListGUI::__construct |
( |
| ) |
|
Member Function Documentation
ilGroupedListGUI::addEntry |
( |
|
$a_content, |
|
|
|
$a_href = "" , |
|
|
|
$a_target = "" |
|
) |
| |
Add entry.
- Parameters
-
Definition at line 59 of file class.ilGroupedListGUI.php.
{
$this->items[] = array("type" => "entry", "content" => $a_content,
"href" => $a_href, "target" => $a_target);
}
ilGroupedListGUI::addGroupHeader |
( |
|
$a_content | ) |
|
Add group header.
- Parameters
-
Definition at line 31 of file class.ilGroupedListGUI.php.
{
$this->items[] = array("type" => "group_head", "content" => $a_content);
}
ilGroupedListGUI::addSeparator |
( |
| ) |
|
ilGroupedListGUI::getHTML |
( |
| ) |
|
Get HTML.
- Parameters
-
Definition at line 72 of file class.ilGroupedListGUI.php.
References $tpl.
{
$tpl =
new ilTemplate(
"tpl.grouped_list.html",
true,
true,
"Services/UIComponent/GroupedList");
foreach ($this->items as $i)
{
switch($i["type"])
{
case "sep":
$tpl->touchBlock(
"item");
break;
case "next_col":
$tpl->touchBlock(
"next_col");
$tpl->touchBlock(
"item");
break;
case "group_head":
$tpl->setCurrentBlock(
"group_head");
$tpl->setVariable(
"GROUP_HEAD", $i[
"content"]);
$tpl->parseCurrentBlock();
$tpl->touchBlock(
"item");
break;
case "entry":
if ($i["href"] != "")
{
$tpl->setCurrentBlock(
"linked_entry");
$tpl->setVariable(
"HREF", $i[
"href"]);
$tpl->setVariable(
"TXT_ENTRY", $i[
"content"]);
if ($i["target"] != "")
{
$tpl->setVariable(
"TARGET",
'target="'.$i[
"target"].
'"');
}
else
{
$tpl->setVariable(
"TARGET",
'target="_top"');
}
$tpl->parseCurrentBlock();
$tpl->touchBlock(
"item");
}
break;
}
}
if ($this->multi_column)
{
$tpl->touchBlock(
"multi_start");
$tpl->touchBlock(
"multi_end");
}
}
ilGroupedListGUI::nextColumn |
( |
| ) |
|
Add separator.
Definition at line 47 of file class.ilGroupedListGUI.php.
{
$this->items[] = array("type" => "next_col");
$this->multi_column = true;
}
Field Documentation
ilGroupedListGUI::$items = array() |
|
private |
ilGroupedListGUI::$multi_column = false |
|
private |
The documentation for this class was generated from the following file: