Class ilMMTopParentItemRenderer.
More...
◆ addEntry()
- Parameters
-
Definition at line 104 of file class.ilMMTopParentItemRenderer.php.
105 {
106 $target = $child instanceof
hasAction ? ($child->isLinkWithExternalAction() ?
"_blank" :
"_top") :
"_top";
107 $href = ($child instanceof
hasAction) ? $child->getAction() :
"#";
109 $a_id = "mm_" . $child->getProviderIdentification()->getInternalIdentifier();
112 $href,
114 "",
115 "",
116 $a_id,
117 $tooltip,
118 "left center",
119 "right center",
120 false
121 );
122 }
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.
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
References $target, ilGroupedListGUI\addEntry(), ilHelp\getMainMenuTooltip(), and ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle\getTitle().
Referenced by handleLinkList().
◆ handleAsyncContent()
ilMMTopParentItemRenderer::handleAsyncContent |
( |
|
$child, |
|
|
|
$gl |
|
) |
| |
|
private |
- Parameters
-
- Exceptions
-
Definition at line 131 of file class.ilMMTopParentItemRenderer.php.
132 {
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());
136 $gl->addEntry(
137 $atpl->get(),
138 "#",
139 "_top",
140 "",
141 "",
142 $identifier,
144 "left center",
145 "right center",
146 false
147 );
148 }
special template class to simplify handling of ITX/PEAR
References ilHelp\getMainMenuTooltip().
◆ handleContent()
ilMMTopParentItemRenderer::handleContent |
( |
hasContent |
$child, |
|
|
|
$gl |
|
) |
| |
|
private |
◆ handleLinkList()
ilMMTopParentItemRenderer::handleLinkList |
( |
|
$child, |
|
|
|
$gl, |
|
|
|
$i |
|
) |
| |
|
private |
- Parameters
-
Definition at line 181 of file class.ilMMTopParentItemRenderer.php.
182 {
183 if (count($child->getLinks()) > 0) {
184 $gl->addGroupHeader($child->getTitle());
185 foreach ($child->getLinks() as $link) {
187 }
188 }
189 }
addEntry(ilGroupedListGUI $gl, hasTitle $child, string $identifier)
References $i, and addEntry().
◆ handleSeparator()
ilMMTopParentItemRenderer::handleSeparator |
( |
|
$child, |
|
|
|
$gl |
|
) |
| |
|
private |
- Parameters
-
Definition at line 89 of file class.ilMMTopParentItemRenderer.php.
90 {
91 if ($child->isTitleVisible()) {
92 $gl->addGroupHeader($child->getTitle());
93 } else {
94 $gl->addSeparator();
95 }
96 }
The documentation for this class was generated from the following file: