ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilMMTopLinkItemRenderer.php
Go to the documentation of this file.
1
<?
php
2
3
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
;
6
use
ILIAS\UI\Component\Component
;
7
13
class
ilMMTopLinkItemRenderer
extends
BaseTypeRenderer
14
{
15
19
const
BLANK
=
"_blank"
;
20
const
TOP
=
"_top"
;
21
22
29
public
function
getComponentForItem
(
isItem
$item) :
Component
30
{
34
$tpl
=
new
ilTemplate
(
"tpl.mm_top_link_item.html"
,
false
,
false
,
'Services/MainMenu'
);
35
$tpl
->setVariable(
"TITLE"
, $item->getTitle());
36
$tpl
->setVariable(
"HREF"
, $item->getAction());
37
$tpl
->setVariable(
"TARGET"
, $item->isLinkWithExternalAction() ? self::BLANK : self::TOP);
38
$tpl
->setVariable(
"ID"
,
"mm_"
. $item->
getProviderIdentification
()->getInternalIdentifier());
39
40
return
$this->ui_factory->legacy(
$tpl
->get());
41
}
42
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem\getProviderIdentification
getProviderIdentification()
$tpl
$tpl
Definition:
ilias.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer
Class BaseTypeRenderer.
Definition:
BaseTypeRenderer.php:12
ILIAS\UI\Component
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem
Interface IFactory.
Definition:
isItem.php:12
Component
TopLinkItem
ilTemplate
special template class to simplify handling of ITX/PEAR
Definition:
class.ilTemplate.php:13
ilMMTopLinkItemRenderer
Class ilMMTopLinkItemRenderer.
Definition:
class.ilMMTopLinkItemRenderer.php:13
isItem
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer\getComponentForItem
getComponentForItem(isItem $item)
Definition:
BaseTypeRenderer.php:34
php
ilMMTopLinkItemRenderer\BLANK
const BLANK
Definition:
class.ilMMTopLinkItemRenderer.php:19
BaseTypeRenderer
ilMMTopLinkItemRenderer\TOP
const TOP
Definition:
class.ilMMTopLinkItemRenderer.php:20
Services
MainMenu
classes
Renderer
class.ilMMTopLinkItemRenderer.php
Generated on Thu Jan 30 2025 19:02:00 for ILIAS by
1.8.13 (using
Doxyfile
)