31 $tpl =
new ilTemplate(
"tpl.mm_top_parent_item.html",
false,
false,
'Services/MainMenu');
32 $tpl->setVariable(
"TITLE", $item->getTitle());
36 $gl->setAsDropDown(
true);
37 foreach ($item->getChildren() as $child) {
38 $i = $child->getProviderIdentification()->getInternalIdentifier();
40 case ($child instanceof
hasContent && $child->getAsyncContentURL() ===
''):
55 case($child instanceof
isItem):
57 $com = $child->getTypeInformation()->getRenderer()->getComponentForItem($child);
58 $identifier = $child->getProviderIdentification()->getInternalIdentifier();
59 $target = $child instanceof
hasAction ? ($child->isLinkWithExternalAction() ?
"_blank" :
"_top") :
"_top";
62 $a_id =
"mm_" . $identifier;
64 $DIC->ui()->renderer()->render($com),
79 $tpl->setVariable(
"CONTENT", $gl->getHTML());
81 return $this->ui_factory->legacy(
$tpl->get());
91 if ($child->isTitleVisible()) {
92 $gl->addGroupHeader($child->getTitle());
106 $target = $child instanceof
hasAction ? ($child->isLinkWithExternalAction() ?
"_blank" :
"_top") :
"_top";
107 $href = ($child instanceof
hasAction) ? $child->getAction() :
"#";
109 $a_id =
"mm_" . $child->getProviderIdentification()->getInternalIdentifier();
133 $identifier = $child->getProviderIdentification()->getInternalIdentifier();
134 $atpl =
new ilTemplate(
"tpl.self_loading_item.html",
false,
false,
'Services/MainMenu');
135 $atpl->setVariable(
"ASYNC_URL", $child->getAsyncContentURL());
160 $identifier = $child->getProviderIdentification()->getInternalIdentifier();
162 $DIC->ui()->renderer()->render($child->
getContent()),
183 if (count($child->getLinks()) > 0) {
184 $gl->addGroupHeader($child->getTitle());
185 foreach ($child->getLinks() as $link) {
handleLinkList($child, $gl, $i)
handleSeparator($child, $gl)
addEntry(ilGroupedListGUI $gl, hasTitle $child, string $identifier)
getProviderIdentification()
handleAsyncContent($child, $gl)
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.
special template class to simplify handling of ITX/PEAR
Interface hasAsyncContent.
handleContent(hasContent $child, $gl)
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
getComponentForItem(isItem $item)
Class ilMMTopParentItemRenderer.