ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
TopParentItemRenderer.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
TopParentItemRenderer
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
$f
=
$this->ui_factory
;
46
$slate =
$f
->mainControls()->slate()->combined($item->getTitle(), $this->
getStandardSymbol
($item));
47
51
foreach
($item->getChildren() as $child) {
52
$component = $child->getTypeInformation()->getRenderer()->getComponentForItem($child,
false
);
53
if
($this->isComponentSupportedForCombinedSlate($component)) {
54
$slate = $slate->withAdditionalEntry($component);
55
}
56
}
57
58
return
$slate;
59
}
60
}
insteadof
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\BaseTypeRenderer
Class BaseTypeRenderer.
Definition:
BaseTypeRenderer.php:41
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\BaseTypeRenderer\$ui_factory
Factory $ui_factory
Definition:
BaseTypeRenderer.php:52
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer
Definition:
BaseTypeRenderer.php:21
isSupportedTrait
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\TopParentItemRenderer\SlateSessionStateCode
MakeSlateAsync::unhash insteadof SlateSessionStateCode
Definition:
TopParentItemRenderer.php:35
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
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
SlateSessionStateCode
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\TopParentItemRenderer
Class TopParentItemRenderer.
Definition:
TopParentItemRenderer.php:31
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
TopParentItemRenderer.php
Generated on Mon Sep 1 2025 23:03:11 for ILIAS by
1.8.13 (using
Doxyfile
)