31        $this->ctrl = 
$DIC->ctrl();
 
   41        $this->as_dropdown = $a_val;
 
   42        $this->dd_pullright = $a_pullright;
 
   63        $this->items[] = array(
"type" => 
"group_head", 
"content" => 
$a_content,
 
   64            "add_class" => $a_add_class);
 
   72        $this->items[] = array(
"type" => 
"sep");
 
   80        $this->items[] = array(
"type" => 
"next_col");
 
   81        $this->multi_column = 
true;
 
   98        $a_tt_my = 
"right center",
 
   99        $a_tt_at = 
"left center",
 
  100        $a_tt_use_htmlspecialchars = 
true 
  102        $this->items[] = array(
"type" => 
"entry", 
"content" => 
$a_content,
 
  103            "href" => $a_href, 
"target" => $a_target, 
"onclick" => $a_onclick,
 
  104            "add_class" => $a_add_class, 
"id" => $a_id, 
"ttip" => $a_ttip,
 
  105            "tt_my" => $a_tt_my, 
"tt_at" => $a_tt_at,
 
  106            "tt_use_htmlspecialchars" => $a_tt_use_htmlspecialchars);
 
  120        $tpl = 
new ilTemplate(
"tpl.grouped_list.html", 
true, 
true, 
"Services/UIComponent/GroupedList");
 
  122        foreach ($this->items as 
$i) {
 
  123            switch (
$i[
"type"]) {
 
  125                    $tpl->touchBlock(
"sep");
 
  126                    $tpl->touchBlock(
"item");
 
  130                    $tpl->touchBlock(
"next_col");
 
  131                    $tpl->touchBlock(
"item");
 
  135                    $tpl->setCurrentBlock(
"group_head");
 
  136                    if (
$i[
"add_class"] != 
"") {
 
  137                        $tpl->setVariable(
"ADD_CLASS", 
$i[
"add_class"]);
 
  139                    $tpl->setVariable(
"GROUP_HEAD", 
$i[
"content"]);
 
  140                    $tpl->parseCurrentBlock();
 
  141                    $tpl->touchBlock(
"item");
 
  145                    if (
$i[
"href"] != 
"") {
 
  146                        $tpl->setCurrentBlock(
"linked_entry");
 
  147                        if (
$i[
"add_class"] != 
"") {
 
  148                            $tpl->setVariable(
"ADD_CLASS", 
$i[
"add_class"]);
 
  151                        $tpl->setVariable(
"TXT_ENTRY", 
$i[
"content"]);
 
  152                        if (
$i[
"target"] != 
"") {
 
  153                            $tpl->setVariable(
"TARGET", 
'target="' . 
$i[
"target"] . 
'"');
 
  155                            $tpl->setVariable(
"TARGET", 
'target="_top"');
 
  157                        if (
$i[
"onclick"] != 
"") {
 
  158                            $tpl->setVariable(
"ONCLICK", 
'onclick="' . 
$i[
"onclick"] . 
'"');
 
  160                        if (
$i[
"id"] != 
"") {
 
  161                            $tpl->setVariable(
"ID", 
'id="' . 
$i[
"id"] . 
'"');
 
  163                        $tpl->parseCurrentBlock();
 
  164                        $tpl->touchBlock(
"item");
 
  165                        if (
$i[
"ttip"] != 
"" && 
$i[
"id"] != 
"") {
 
  166                            include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
 
  168                                $tt_calls .= 
" " . ilTooltipGUI::getTooltip(
 
  174                                    $i[
"tt_use_htmlspecialchars"]
 
  183                                    $i[
"tt_use_htmlspecialchars"]
 
  188                        $tpl->setCurrentBlock(
"unlinked_entry");
 
  189                        if (
$i[
"add_class"] != 
"") {
 
  190                            $tpl->setVariable(
"ADD_CLASS2", 
$i[
"add_class"]);
 
  192                        $tpl->setVariable(
"TXT_ENTRY2", 
$i[
"content"]);
 
  193                        $tpl->parseCurrentBlock();
 
  199        if ($this->multi_column) {
 
  200            $tpl->touchBlock(
"multi_start");
 
  201            $tpl->touchBlock(
"multi_end");
 
  204        if ($tt_calls != 
"") {
 
  205            $tpl->setCurrentBlock(
"script");
 
  206            $tpl->setVariable(
"TT_CALLS", $tt_calls);
 
  207            $tpl->parseCurrentBlock();
 
  211            if ($this->dd_pullright) {
 
  212                $tpl->setVariable(
"LIST_CLASS", 
"dropdown-menu pull-right");
 
  214                $tpl->setVariable(
"LIST_CLASS", 
"dropdown-menu");
 
  216            $tpl->setVariable(
"LIST_ROLE", 
"menu");
 
  218            $tpl->setVariable(
"LIST_CLASS", 
"");
 
  219            $tpl->setVariable(
"LIST_ROLE", 
"");
 
An exception for terminatinating execution or to throw for unit testing.
addSeparator()
Add separator.
setAsDropDown($a_val, $a_pullright=false)
Set as drop down.
nextColumn()
Add separator.
getAsDropDown()
Get as drop down.
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.
addGroupHeader($a_content, $a_add_class="")
Add group header.
__construct()
Constructor.
special template class to simplify handling of ITX/PEAR
static secureUrl($url)
Prepare secure href attribute.