41         $this->
ctrl = $DIC->ctrl();
    46         bool $a_pullright = 
false    48         $this->as_dropdown = $a_val;
    49         $this->dd_pullright = $a_pullright;
    59         string $a_add_class = 
""    61         $this->items[] = array(
"type" => 
"group_head", 
"content" => $a_content,
    62             "add_class" => $a_add_class);
    67         $this->items[] = array(
"type" => 
"sep");
    72         $this->items[] = array(
"type" => 
"next_col");
    73         $this->multi_column = 
true;
    79         string $a_target = 
"",
    80         string $a_onclick = 
"",
    81         string $a_add_class = 
"",
    84         string $a_tt_my = 
"right center",
    85         string $a_tt_at = 
"left center",
    86         bool $a_tt_use_htmlspecialchars = 
true    88         $this->items[] = array(
"type" => 
"entry", 
"content" => $a_content,
    89             "href" => $a_href, 
"target" => $a_target, 
"onclick" => $a_onclick,
    90             "add_class" => $a_add_class, 
"id" => $a_id, 
"ttip" => $a_ttip,
    91             "tt_my" => $a_tt_my, 
"tt_at" => $a_tt_at,
    92             "tt_use_htmlspecialchars" => $a_tt_use_htmlspecialchars);
    99         $tpl = 
new ilTemplate(
"tpl.grouped_list.html", 
true, 
true, 
"components/ILIAS/UIComponent/GroupedList");
   101         foreach ($this->items as $i) {
   102             switch ($i[
"type"]) {
   104                     $tpl->touchBlock(
"sep");
   105                     $tpl->touchBlock(
"item");
   109                     $tpl->touchBlock(
"next_col");
   110                     $tpl->touchBlock(
"item");
   114                     $tpl->setCurrentBlock(
"group_head");
   115                     if ($i[
"add_class"] != 
"") {
   116                         $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
   118                     $tpl->setVariable(
"GROUP_HEAD", $i[
"content"]);
   119                     $tpl->parseCurrentBlock();
   120                     $tpl->touchBlock(
"item");
   124                     if ($i[
"href"] != 
"") {
   125                         $tpl->setCurrentBlock(
"linked_entry");
   126                         if ($i[
"add_class"] != 
"") {
   127                             $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
   129                         $tpl->setVariable(
"HREF", str_replace(
'&', 
'&', 
ilUtil::secureUrl($i[
"href"])));
   130                         $tpl->setVariable(
"TXT_ENTRY", $i[
"content"]);
   131                         if ($i[
"target"] != 
"") {
   132                             $tpl->setVariable(
"TARGET", 
'target="' . $i[
"target"] . 
'"');
   134                             $tpl->setVariable(
"TARGET", 
'target="_top"');
   136                         if ($i[
"onclick"] != 
"") {
   137                             $tpl->setVariable(
"ONCLICK", 
'onclick="' . $i[
"onclick"] . 
'"');
   139                         if ($i[
"id"] != 
"") {
   140                             $tpl->setVariable(
"ID", 
'id="' . $i[
"id"] . 
'"');
   143                             $tpl->setVariable(
"ITEM_ROLE", 
'role="menuitem"');
   145                         $tpl->parseCurrentBlock();
   146                         $tpl->touchBlock(
"item");
   147                         if ($i[
"ttip"] != 
"" && $i[
"id"] != 
"") {
   148                             if ($ilCtrl->isAsynch()) {
   155                                     $i[
"tt_use_htmlspecialchars"]
   164                                     $i[
"tt_use_htmlspecialchars"]
   169                         $tpl->setCurrentBlock(
"unlinked_entry");
   170                         if ($i[
"add_class"] != 
"") {
   171                             $tpl->setVariable(
"ADD_CLASS2", $i[
"add_class"]);
   173                         $tpl->setVariable(
"TXT_ENTRY2", $i[
"content"]);
   174                         $tpl->parseCurrentBlock();
   180         if ($this->multi_column) {
   181             $tpl->touchBlock(
"multi_start");
   182             $tpl->touchBlock(
"multi_end");
   185         if ($tt_calls !== 
"") {
   186             $tpl->setCurrentBlock(
"script");
   187             $tpl->setVariable(
"TT_CALLS", $tt_calls);
   188             $tpl->parseCurrentBlock();
   191         if ($this->
id !== 
"") {
   192             $tpl->setCurrentBlock(
"id");
   193             $tpl->setVariable(
"ID", $this->
id);
   194             $tpl->parseCurrentBlock();
   198             if ($this->dd_pullright) {
   199                 $tpl->setVariable(
"LIST_CLASS", 
"dropdown-menu pull-right");
   201                 $tpl->setVariable(
"LIST_CLASS", 
"dropdown-menu");
   203             $tpl->setVariable(
"LIST_ROLE", 
'role="menu"');
   205             $tpl->setVariable(
"LIST_CLASS", 
"");
   206             $tpl->setVariable(
"LIST_ROLE", 
"");
 
static secureUrl(string $url)
 
addEntry(string $a_content, string $a_href="", string $a_target="", string $a_onclick="", string $a_add_class="", string $a_id="", string $a_ttip="", string $a_tt_my="right center", string $a_tt_at="left center", bool $a_tt_use_htmlspecialchars=true)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(Container $dic, ilPlugin $plugin)
 
setAsDropDown(bool $a_val, bool $a_pullright=false)
 
addGroupHeader(string $a_content, string $a_add_class="")