ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
Complex.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item
;
2
3
use
Closure
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasContent
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
7
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
;
8
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
9
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isChild
;
10
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
;
11
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait
;
12
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
;
13
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\SymbolDecoratorTrait
;
14
use
ILIAS\UI\Component\Component
;
15
20
class
Complex
extends
AbstractChildItem
implements
hasContent
,
hasTitle
,
hasSymbol
,
supportsAsynchronousLoading
,
isInterchangeableItem
21
{
22
use
SymbolDecoratorTrait
;
23
use
hasSymbolTrait
;
24
use
isInterchangeableItemTrait
;
25
29
private
$content_wrapper
;
33
private
$content
;
37
private
$title
=
''
;
41
private
$supports_async_loading
=
false
;
42
46
public
function
withContentWrapper
(
Closure
$content_wrapper
) :
hasContent
47
{
48
$clone = clone($this);
49
$clone->content_wrapper =
$content_wrapper
;
50
51
return
$clone;
52
}
53
57
public
function
withContent
(
Component
$ui_component) :
hasContent
58
{
59
$clone = clone($this);
60
$clone->content = $ui_component;
61
62
return
$clone;
63
}
64
68
public
function
getContent
() :
Component
69
{
70
if
($this->content_wrapper !== null) {
71
$wrapper =
$this->content_wrapper
;
72
73
return
$wrapper();
74
}
75
76
return
$this->content
;
77
}
78
83
public
function
withTitle
(
string
$title
) :
hasTitle
84
{
85
$clone = clone($this);
86
$clone->title =
$title
;
87
88
return
$clone;
89
}
90
94
public
function
getTitle
() : string
95
{
96
return
$this->title
;
97
}
98
102
public
function
withSupportsAsynchronousLoading
(
bool
$supported) :
supportsAsynchronousLoading
103
{
104
$clone = clone($this);
105
$clone->supports_async_loading = $supported;
106
107
return
$clone;
108
}
109
113
public
function
supportsAsynchronousLoading
() : bool
114
{
115
return
$this->supports_async_loading
;
116
}
117
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\getContent
getContent()
Definition:
Complex.php:68
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\$supports_async_loading
$supports_async_loading
Definition:
Complex.php:41
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item
Definition:
Complex.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex
Class Complex.
Definition:
Complex.php:20
isInterchangeableItemTrait
isInterchangeableItemTrait
ILIAS\UI\Component
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\withContent
withContent(Component $ui_component)
Definition:
Complex.php:57
Component
Closure
isChild
supportsAsynchronousLoading
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:44
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\withTitle
withTitle(string $title)
Definition:
Complex.php:83
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\$content
$content
Definition:
Complex.php:33
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\$title
$title
Definition:
Complex.php:37
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
Interface supportsAsynchronousLoading.
Definition:
supportsAsynchronousLoading.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Interface hasSymbol Methods for Entries with Symbols.
Definition:
hasSymbol.php:11
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\withContentWrapper
withContentWrapper(Closure $content_wrapper)
Definition:
Complex.php:46
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasContent
Interface hasContent.
Definition:
hasContent.php:11
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\getTitle
getTitle()
Definition:
Complex.php:94
hasContent
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:18
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:10
isInterchangeableItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\withSupportsAsynchronousLoading
withSupportsAsynchronousLoading(bool $supported)
Definition:
Complex.php:102
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\supportsAsynchronousLoading
supportsAsynchronousLoading()
Definition:
Complex.php:113
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Complex\$content_wrapper
$content_wrapper
Definition:
Complex.php:29
src
GlobalScreen
Scope
MainMenu
Factory
Item
Complex.php
Generated on Mon Apr 7 2025 20:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)