ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
LinkListItemRenderer.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer
;
22
23
use
ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait
;
24
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem
;
25
use
ILIAS\UI\Component\Component
;
26
31
class
LinkListItemRenderer
extends
BaseTypeRenderer
32
{
33
use
MakeSlateAsync
,
SlateSessionStateCode
{
34
MakeSlateAsync::hash
insteadof
SlateSessionStateCode
;
35
MakeSlateAsync::unhash
insteadof
SlateSessionStateCode
;
36
}
37
use
isSupportedTrait
;
38
42
#[\Override]
43
public
function
getComponentWithContent
(
isItem
$item):
Component
44
{
45
$slate = $this->ui_factory->mainControls()->slate()->combined($item->getTitle(), $this->
getStandardSymbol
($item));
49
foreach
($item->getLinks() as $link) {
50
if
(!$link->isVisible()) {
51
continue
;
52
}
53
$link = $this->ui_factory->link()->bulky($this->
getStandardSymbol
($link), $link->getTitle(), $this->
getURI
($link->getAction()));
54
$slate = $slate->withAdditionalEntry($link);
55
}
56
57
return
$slate;
58
}
59
}
insteadof
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer
Class BaseTypeRenderer.
Definition:
BaseTypeRenderer.php:41
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\LinkListItemRenderer\SlateSessionStateCode
MakeSlateAsync::unhash insteadof SlateSessionStateCode
Definition:
LinkListItemRenderer.php:35
ILIAS\UI\Component
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\MakeSlateAsync
trait MakeSlateAsync
Trait MakeSlateAsync.
Definition:
MakeSlateAsync.php:30
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem
Interface IFactory.
Definition:
isItem.php:31
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer
Definition:
BaseTypeRenderer.php:21
isSupportedTrait
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer\getComponentWithContent
getComponentWithContent(isItem $item)
This is called in cases when the Full Item with it's content is needed, e.g.
Definition:
BaseTypeRenderer.php:82
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\LinkListItemRenderer
Class LinkListItemRenderer.
Definition:
LinkListItemRenderer.php:31
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer\getURI
getURI(string $uri_string)
Definition:
BaseTypeRenderer.php:149
SlateSessionStateCode
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer\getStandardSymbol
getStandardSymbol(isItem $item)
Definition:
BaseTypeRenderer.php:114
isItem
isSupportedTrait
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Collector
Renderer
LinkListItemRenderer.php
Generated on Mon Sep 1 2025 23:03:11 for ILIAS by
1.8.13 (using
Doxyfile
)