ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
TopParentItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractParentItem
;
24
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
25
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
;
26
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
27
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
28
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
;
29
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
30
use
ILIAS\GlobalScreen\Scope\TriggererDecoratorTrait
;
31
35
class
TopParentItem
extends
AbstractParentItem
implements
36
isTopItem
,
37
hasTitle
,
38
hasSymbol
,
39
supportsAsynchronousLoading
40
{
41
use
hasSymbolTrait
;
42
43
protected
string
$title
=
''
;
44
45
protected
bool
$supports_async_loading
=
false
;
46
51
public
function
withTitle
(
string
$title):
hasTitle
52
{
53
$clone = clone($this);
54
$clone->title =
$title
;
55
56
return
$clone;
57
}
58
62
public
function
getTitle
(): string
63
{
64
return
$this->title
;
65
}
66
67
public
function
withSupportsAsynchronousLoading
(
bool
$supported):
supportsAsynchronousLoading
68
{
69
$clone = clone($this);
70
$clone->supports_async_loading = $supported;
71
72
return
$clone;
73
}
74
75
public
function
supportsAsynchronousLoading
(): bool
76
{
77
return
$this->supports_async_loading
;
78
}
79
}
AbstractParentItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\withSupportsAsynchronousLoading
withSupportsAsynchronousLoading(bool $supported)
Definition:
TopParentItem.php:67
isTopItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\withTitle
withTitle(string $title)
Definition:
TopParentItem.php:51
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem
Definition:
TopParentItem.php:35
supportsAsynchronousLoading
TriggererDecoratorTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\getTitle
getTitle()
Definition:
TopParentItem.php:62
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:63
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\supportsAsynchronousLoading
supportsAsynchronousLoading()
Definition:
TopParentItem.php:75
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
Interface supportsAsynchronousLoading Types, which implement this interface, can load their content a...
Definition:
supportsAsynchronousLoading.php:27
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Definition:
hasSymbol.php:30
isDecorateable
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractParentItem
Class AbstractParentItem.
Definition:
AbstractParentItem.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\$supports_async_loading
bool $supports_async_loading
Definition:
TopParentItem.php:45
hasTitle
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopParentItem\$title
string $title
Definition:
TopParentItem.php:43
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Factory
TopItem
TopParentItem.php
Generated on Wed Sep 10 2025 15:15:42 for ILIAS by
1.8.13 (using
Doxyfile
)