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
Combined.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
6
7
namespace
ILIAS\UI\Implementation\Component\MainControls\Slate
;
8
9
use
ILIAS\UI\Component\Divider\Horizontal
;
10
use
ILIAS\UI\Component\MainControls\Slate
as
ISlate
;
11
use
ILIAS\UI\Component\Button\Bulky
as
IBulkyButton
;
12
use
ILIAS\UI\Component\Link\Bulky
as IBulkyLink;
13
use
ILIAS\UI\Component\Signal
;
14
18
class
Combined
extends
Slate
implements
ISlate\Combined
19
{
20
const
ENTRY_ACTION_TRIGGER
=
'trigger'
;
21
25
protected
$contents
= [];
26
30
public
function
withAdditionalEntry
($entry) :
ISlate
\
Combined
31
{
32
$classes = [
33
IBulkyButton::class,
34
IBulkyLink::class,
35
ISlate\Slate::class,
36
Horizontal::class
37
];
38
$check = [$entry];
39
$this->
checkArgListElements
(
"Slate, Bulky -Button or -Link"
, $check, $classes);
40
41
$clone = clone $this;
42
$clone->contents[] = $entry;
43
return
$clone;
44
}
45
49
public
function
getContents
() : array
50
{
51
return
$this->contents
;
52
}
53
54
55
public
function
getTriggerSignal
(
string
$entry_id) :
Signal
56
{
57
$signal = $this->signal_generator->create();
58
$signal->addOption(
'entry_id'
, $entry_id);
59
$signal->addOption(
'action'
, self::ENTRY_ACTION_TRIGGER);
60
$this->trigger_signals[] = $signal;
61
return
$signal;
62
}
63
64
public
function
withMappedSubNodes
(callable
$f
)
65
{
66
$clone = clone $this;
67
$new_contents = [];
68
foreach
($clone->getContents() as $k => $v) {
69
$new_contents[$k] =
$f
($k, $v);
70
}
71
$clone->contents = $new_contents;
72
return
$clone;
73
}
74
}
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\withAdditionalEntry
withAdditionalEntry($entry)
Definition:
Combined.php:30
ILIAS\UI\Component\Link\Bulky
Bulky Link - a visually enriched link that looks like a button but behaves like a link...
Definition:
Bulky.php:15
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined
Combined Slate.
Definition:
Combined.php:18
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\$contents
$contents
Definition:
Combined.php:25
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\ENTRY_ACTION_TRIGGER
const ENTRY_ACTION_TRIGGER
Definition:
Combined.php:20
Bulky
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\withMappedSubNodes
withMappedSubNodes(callable $f)
Definition:
Combined.php:64
Horizontal
ILIAS\UI\Component\Signal
Definition:
Signal.php:13
ILIAS\UI\Implementation\Component\MainControls\Slate
Definition:
Combined.php:7
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\getContents
getContents()
Component[]
Definition:
Combined.php:49
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate
Slate.
Definition:
Slate.php:20
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\getTriggerSignal
getTriggerSignal(string $entry_id)
Definition:
Combined.php:55
ILIAS\UI\Implementation\Component\checkArgListElements
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes. ...
Definition:
ComponentHelper.php:217
Signal
ILIAS\UI\Component\MainControls\Slate\Combined
This describes the Combined Slate.
Definition:
Combined.php:12
ILIAS\UI\Component\MainControls\Slate
Definition:
Combined.php:5
src
UI
Implementation
Component
MainControls
Slate
Combined.php
Generated on Tue Apr 8 2025 20:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)